stable

Clone or download

Read-only

Use "rich-text-editor" lib in Artifact modal

Part of story #18337 markdown replace text Also rename DisplayInterface to FormatSelectorInterface, which should be more explicit and group format selector code into a dedicated folder. How to test: - Rebuild the lib and the artifact modal: $ (cd plugins/tracker/scripts/lib/rich-text-editor/ && npm run build) $ (cd plugins/agiledashboard/ && npm run build) - Go to Kanban or Planning view - Text is now converted when you switch format from Markdown to HTML and vice-versa. - No other functional change in text fields behaviour: CKEditor appears in HTML format, it handles image upload (drop or paste), it saves format correctly. - No functional change in follow-up comments behaviour. The user preference for text fields format is still taken into account. Change-Id: Idd772dcff1c7d1709c6a330e67f3a4be246054aa

Modified Files

Name
M plugins/tracker/scripts/angular-artifact-modal/package.json +1 −0 Go to diff View file
R plugins/tracker/scripts/angular-artifact-modal/src/__mocks__/ckeditor4.js Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/common/FormatSelector.vue +4 −0 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/common/RichTextEditor.test.js +55 −85 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/common/RichTextEditor.vue +58 −87 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/followups/FollowupEditor.test.js +5 −4 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/followups/FollowupEditor.vue +6 −5 Go to diff View file
A plugins/tracker/scripts/angular-artifact-modal/src/model/UserPreferencesStore.ts +29 −0 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/text-field/TextField.test.js +5 −4 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/text-field/TextField.vue +6 −5 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/tuleap-artifact-modal-service.js +5 −3 Go to diff View file
M plugins/tracker/scripts/angular-artifact-modal/src/tuleap-artifact-modal-service.test.js +2 −2 Go to diff View file
M plugins/tracker/scripts/lib/rich-text-editor/README.md +42 −3 Go to diff View file
M plugins/tracker/scripts/lib/rich-text-editor/src/RichTextEditorFactory.ts +19 −10 Go to diff View file
M plugins/tracker/scripts/lib/rich-text-editor/src/TextEditor.test.ts +33 −0 Go to diff View file
M plugins/tracker/scripts/lib/rich-text-editor/src/TextEditor.ts +4 −0 Go to diff View file
R plugins/tracker/scripts/lib/rich-text-editor/src/ExistingFormatSelector.test.ts Go to diff View file
R plugins/tracker/scripts/lib/rich-text-editor/src/ExistingFormatSelector.ts Go to diff View file
R plugins/tracker/scripts/lib/rich-text-editor/src/FlamingParrotDocumentAdapter.test.ts Go to diff View file
R plugins/tracker/scripts/lib/rich-text-editor/src/FlamingParrotDocumentAdapter.ts Go to diff View file
R plugins/tracker/scripts/lib/rich-text-editor/src/FormatSelectorBuilder.test.ts Go to diff View file
R plugins/tracker/scripts/lib/rich-text-editor/src/FormatSelectorBuilder.ts Go to diff View file
R plugins/tracker/scripts/lib/rich-text-editor/src/DisplayInterface.ts Go to diff View file
R plugins/tracker/scripts/lib/rich-text-editor/src/SyntaxHelperButtonToggler.ts Go to diff View file