stable

Clone or download

Read-only

feat: Closing editor should stop ongoing file uploads

When I drop a bunch of files in the section editor, and then cancel the edition of this section, then the upload of the file should stop (corresponding patch is marked as canceled in the dev tools) and the progress bar should disappear. The upload is aborted but not terminated, so that if the user drop again the file, then the already uploaded bits are kept and new upload will resume faster. Part of story #38627: Choice of a new Rich Text Editor Change-Id: I0d083632f4614b28e6b9749eaea861e288ea7b27

Modified Files

Name
M lib/frontend/prose-mirror-editor/package.json +1 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/pnpm-lock.yaml +3 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/drop-file/helpers/upload-file-helper.ts +12 −2 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/drop-file/plugin-drop-file.ts +45 −11 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/drop-file/upload-file.test.ts +5 −1 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/drop-file/upload-file.ts +30 −17 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/print/SectionPrinterVersion.vue +0 −1 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/section/SectionContent.vue +0 −2 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/section/description/SectionDescription.test.ts +0 −1 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/section/description/SectionDescription.vue +1 −2 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/section/description/SectionDescriptionEditorProseMirror.test.ts +2 −2 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/section/description/SectionDescriptionEditorProseMirror.vue +9 −3 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/composables/useSectionEditor.test.ts +0 −13 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/composables/useSectionEditor.ts +0 −4 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/helpers/stubs/SectionEditorStub.ts +0 −1 Go to diff View file