stable

Clone or download

Read-only

feat: Preformatted text in toolbar text-style select

part of story #38627 Choice of a new Rich Text Editor How to test: - When the selection contains only one header --> The select displays "Title <number>" - When the selection contains only plain text --> The select displays "Text" - When the selection contains only preformatted text --> The select displays "Preformatted" - When the selection contains several types of styled text --> The select displays "Styles" - Select some content in the editor - Open the select and click on "Preformatted" --> The selected text is now preformatted Change-Id: I5a74a26e99485b149b65d27a0bf79c97897a0ae8

Modified Files

Name
M lib/frontend/prose-mirror-editor-toolbar/po/fr_FR.po +6 −0 Go to diff View file
M lib/frontend/prose-mirror-editor-toolbar/src/elements/buttons/text-style/heading-option-template.test.ts +27 −2 Go to diff View file
M lib/frontend/prose-mirror-editor-toolbar/src/elements/buttons/text-style/heading-option-template.ts +4 −0 Go to diff View file
M lib/frontend/prose-mirror-editor-toolbar/src/elements/buttons/text-style/plain-text-option-template.test.ts +22 −3 Go to diff View file
M lib/frontend/prose-mirror-editor-toolbar/src/elements/buttons/text-style/plain-text-option-template.ts +4 −0 Go to diff View file
A lib/frontend/prose-mirror-editor-toolbar/src/elements/buttons/text-style/preformatted-text-option-template.test.ts +96 −0 Go to diff View file
A lib/frontend/prose-mirror-editor-toolbar/src/elements/buttons/text-style/preformatted-text-option-template.ts +49 −0 Go to diff View file
M lib/frontend/prose-mirror-editor-toolbar/src/elements/buttons/text-style/styles-option-template.test.ts +20 −0 Go to diff View file
M lib/frontend/prose-mirror-editor-toolbar/src/elements/buttons/text-style/styles-option-template.ts +4 −1 Go to diff View file
M lib/frontend/prose-mirror-editor-toolbar/src/elements/buttons/text-style/text-style.test.ts +12 −0 Go to diff View file
M lib/frontend/prose-mirror-editor-toolbar/src/elements/buttons/text-style/text-style.ts +30 −9 Go to diff View file
M lib/frontend/prose-mirror-editor-toolbar/src/elements/toolbar-element.ts +13 −3 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/helper/MonoToolbarTextStyleItemsActivator.test.ts +28 −6 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/helper/MonoToolbarTextStyleItemsActivator.ts +13 −3 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/helper/toolbar-bus.ts +7 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/mono-toolbar.ts +19 −6 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/text-style/HeadingInSelectionRetriever.test.ts +15 −14 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/text-style/HeadingInSelectionRetriever.ts +13 −16 Go to diff View file
D lib/frontend/prose-mirror-editor/src/plugins/toolbar/text-style/HeadingsInSelectionDetector.test.ts +0 −69 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/text-style/ParagraphsInSelectionDetector.test.ts +82 −0 Go to diff View file
R lib/frontend/prose-mirror-editor/src/plugins/toolbar/text-style/HeadingsInSelectionDetector.ts Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/text-style/PreformattedTextInSelectionDetector.test.ts +75 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/text-style/PreformattedTextInSelectionDetector.ts +47 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/text-style/SelectedNodesHaveSameParentChecker.ts +29 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/text-style/stub/CheckSelectedNodesHaveSameParentStub.ts +29 −0 Go to diff View file
R lib/frontend/prose-mirror-editor/src/plugins/toolbar/text-style/stub/DetectHeadingsInSelectionStub.ts Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/text-style/stub/DetectPreformattedTextInSelectionStub.ts +29 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/text-style/transform-text.test.ts +25 −1 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/text-style/transform-text.ts +9 −3 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/toolbar/EditorToolbar.vue +1 −1 Go to diff View file