stable

Clone or download

Read-only

fix: initGettext async in prose-mirror-editor

We should not have to load every supported languages each time we open an artidoc. Instead on using `initGettextSync`, we should use `initGettext` instead. No functional change. Part of story #38627: Choice of a new Rich Text Editor Change-Id: I4e26c85986ee9fb152925a3447b9f68576571f8f

Modified Files

Name
M lib/frontend/prose-mirror-editor/src/plugins/drop-file/plugin-drop-file.ts +21 −13 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/drop-file/types/upload-file.error.ts +4 −4 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/drop-file/upload-file.test.ts +45 −14 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/drop-file/upload-file.ts +11 −9 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/index.ts +3 −2 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/menu.ts +2 −2 Go to diff View file
M lib/frontend/prose-mirror-editor/src/use-editor.ts +27 −13 Go to diff View file
M plugins/artidoc/scripts/artidoc/package.json +2 −1 Go to diff View file
M plugins/artidoc/scripts/artidoc/pnpm-lock.yaml +3 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/section/description/SectionDescriptionEditorProseMirror.vue +13 −6 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/composables/useUploadFile.test.ts +6 −1 Go to diff View file