stable

Clone or download

Read-only

fix: Disabled drag and drop of image when editing an existing followup comment

This closes request #29267 Disabled drag and drop of image when editing an existing followup comment When editing a followup comment, it's not possible to copy&past an image but we can drag&drop it. When saving the new version of the followup, the image is not saved. This is because of the backend that handles the images in HTML content. We have to save images in the Attachment field. However, when editing, this means to rewrite some history to have the new images. This is too dangerous. We have to disable copy&past and drag&drop during the followup edition. How to test ---------- * Switch an existing followup comment in edition * Switch to HTML format if needed * Try to drag&drop an image => An error message saying we are not allowed to do that must be displayed Change-Id: If618bd1b7b259ec346b93ff88d4472caced9686e

Modified Files

Name
M plugins/tracker/scripts/artifact/edition/edit-follow-up-comment-helpers.test.ts +3 −35 Go to diff View file
M plugins/tracker/scripts/artifact/edition/edit-follow-up-comment-helpers.ts +0 −22 Go to diff View file
M plugins/tracker/scripts/artifact/edition/edit-follow-up-comment.js +9 −5 Go to diff View file
M plugins/tracker/scripts/artifact/rich-text-editor-creator/RichTextEditorsCreator.test.ts +52 −3 Go to diff View file
M plugins/tracker/scripts/artifact/rich-text-editor-creator/RichTextEditorsCreator.ts +18 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-ckeditor-image-upload/package.json +3 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-ckeditor-image-upload/pnpm-lock.yaml +335 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-ckeditor-image-upload/src/Initializer.js +2 −15 Go to diff View file
M plugins/tracker/scripts/lib/artifact-ckeditor-image-upload/src/UploadImageFormFactory.js +5 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-ckeditor-image-upload/src/ckeditor4.d.ts +22 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-ckeditor-image-upload/src/definitions.d.ts +2 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-ckeditor-image-upload/src/paste-image-disabler.test.ts +65 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-ckeditor-image-upload/src/paste-image-disabler.ts +39 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-ckeditor-image-upload/tsconfig.json +8 −0 Go to diff View file