stable

Clone or download

Read-only

feat: support drag and drop with prose mirror

- Support drag and drop image file into editor - Display an info bar (to improve with a better design and messages) - Support raw error display into info bar (to improve in another patch) Prose mirror seems to not support multiple file drag and drop. The JS event DragEvent always returns one element il FileList. part of story #38627 : Choice of a new Rich Text Editor Change-Id: I350e715a0976b5e379dd743ea588b43c8d0005c9

Modified Files

Name
M build-manifest.json +4 βˆ’0 Go to diff View file
M lib/frontend/prose-mirror-editor/package.json +12 βˆ’5 Go to diff View file
M lib/frontend/prose-mirror-editor/pnpm-lock.yaml +137 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/po/fr_FR.po +24 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/custom_schema.ts +27 βˆ’0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/index.ts +2 βˆ’54 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/drop-file/helpers/upload-file-helper-helper.ts +47 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/drop-file/index.ts +21 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/drop-file/plugin-drop-file.ts +54 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/drop-file/types/file-upload-options.ts +35 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/drop-file/types/index.ts +21 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/drop-file/types/upload-file.error.ts +45 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/drop-file/upload-file.test.ts +131 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/drop-file/upload-file.ts +104 βˆ’0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/index.ts +1 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/input/README.md +1 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/input/index.ts +20 βˆ’0 Go to diff View file
R lib/frontend/prose-mirror-editor/src/plugins/input.ts Go to diff View file
A lib/frontend/prose-mirror-editor/src/pofile-shim.d.ts +24 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/types/index.ts +20 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/types/prose-mirror.ts +21 βˆ’0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/use-editor.ts +74 βˆ’0 Go to diff View file
M lib/frontend/prose-mirror-editor/vite.config.ts +9 βˆ’1 Go to diff View file
M plugins/artidoc/scripts/artidoc/po/fr_FR.po +3 βˆ’0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/components/section/description/NotificationBar.vue +73 βˆ’0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/section/description/SectionDescriptionEditorProseMirror.test.ts +22 βˆ’0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/section/description/SectionDescriptionEditorProseMirror.vue +18 βˆ’3 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/composables/useUploadFile.test.ts +83 βˆ’0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/composables/useUploadFile.ts +70 βˆ’0 Go to diff View file