stable

Clone or download

Read-only

fix: Do not incitate user to drop when not allowed

If a section is based on a tracker without attachment field, then user should not think that images can be dropped in the editor area. The dropcursor is disabled, and if the user still drop an image, then an error message is displayed. Part of story #38627: Choice of a new Rich Text Editor Change-Id: I058707c12ee0a76d92e92b69c51344a3e1b8cb1c

Modified Files

Name
M lib/frontend/prose-mirror-editor/po/fr_FR.po +4 −1 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/drop-file/types/upload-file.error.ts +9 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/drop-file/upload-file.test.ts +26 −1 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/drop-file/upload-file.ts +12 −1 Go to diff View file
M lib/frontend/prose-mirror-editor/src/use-editor.ts +10 −5 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/section/description/SectionDescriptionEditorProseMirror.vue +4 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/composables/useAttachmentFile.ts +11 −0 Go to diff View file