stable

Clone or download

Read-only

Replace RichTextEditor by web component

part of request #22647 Convert Vue components to hybrids web components How to test: No functional change expected in the text fields or follow-up comments. When you change the format, it will be saved when submitting. When you change the content in the textarea (text format) or in CKEditor (html format), it will be saved. You can still upload images by copy/pasting or drag/dropping them. If your browser is offline (with dev tools), there will be an error if you try to paste an image. If the image exceeds the allowed size (edit your local.inc), there will be an error. When there are no file fields, upload won't be allowed. You can test basic non-regression with cypress end-to-end tests for agiledashboard. Change-Id: Ica2ab5422f088a50351140586bc3e9bd88377d62

Modified Files

Name
M plugins/tracker/scripts/constants/fields-constants.d.ts +11 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/package-lock.json +14 −16 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/package.json +2 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/common/CommonmarkSyntaxHelper.ts +1 −2 Go to diff View file
D plugins/tracker/scripts/lib/artifact-modal/src/common/RichTextEditor.test.js +0 −388 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/common/RichTextEditor.test.ts +486 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/common/RichTextEditor.ts +244 −0 Go to diff View file
D plugins/tracker/scripts/lib/artifact-modal/src/common/RichTextEditor.vue +0 −218 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/common/textfield-mixin.js +2 −2 Go to diff View file
R plugins/tracker/scripts/lib/artifact-modal/src/fields/disabled-field-detector.test.js Go to diff View file
R plugins/tracker/scripts/lib/artifact-modal/src/fields/disabled-field-detector.js Go to diff View file
R plugins/tracker/scripts/lib/artifact-modal/src/fields/file-field/file-field-detector.test.js Go to diff View file
R plugins/tracker/scripts/lib/artifact-modal/src/fields/file-field/file-field-detector.js Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/fields/file-field/file-upload-rules-state.js +20 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/fields/file-field/file-upload-rules-state.test.js +20 −1 Go to diff View file
R plugins/tracker/scripts/lib/artifact-modal/src/fields/file-field/is-uploading-in-ckeditor-state.js Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/fields/text-field/TextField.test.js +9 −9 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/fields/text-field/TextField.vue +17 −16 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/followups/FollowupEditor.test.js +6 −6 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/followups/FollowupEditor.vue +16 −15 Go to diff View file
R plugins/tracker/scripts/lib/artifact-modal/src/vuex-store.js Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/modal-creation-mode-state.js +2 −4 Go to diff View file
R plugins/tracker/scripts/lib/artifact-modal/src/store/index.js Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/ng-vue-config.js +0 −11 Go to diff View file
R plugins/tracker/scripts/lib/artifact-modal/src/store/mutations.js Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/tuleap-artifact-modal-controller.js +3 −3 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/tuleap-artifact-modal-controller.test.js +3 −3 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/tuleap-artifact-modal-service.js +5 −5 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/tuleap-artifact-modal-service.test.js +2 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/tuleap-artifact-modal.js +4 −3 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/types.ts +39 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/tsconfig.json +1 −1 Go to diff View file
M src/scripts/lib/ckeditor-image-upload/package-lock.json +15 −1 Go to diff View file
M src/scripts/lib/ckeditor-image-upload/package.json +4 −1 Go to diff View file
A src/scripts/lib/ckeditor-image-upload/src/file-upload-handler-factory.d.ts +51 −0 Go to diff View file
R plugins/tracker/scripts/lib/artifact-modal/src/store/getters.js Go to diff View file
R plugins/tracker/scripts/lib/artifact-modal/src/store/state.js Go to diff View file
A src/scripts/lib/ckeditor-image-upload/tsconfig.json +9 −0 Go to diff View file