stable

Clone or download

Read-only

Introduce monotoolbar with `Bold`

part of story #38627 : Choice of a new Rich Text Editor `B` has been moved from every editor to mono toolbar - shortcut should still works - icon is still active/inactive - you can still select some text and pass it bold by clicking on monotoolbar icon This patch only does a minimal styling, we do not have mockup when an icon is active, i kept the same css than prose mirror editor, but I'm assuming it won't be good enough This patch is an introduction: - toolbar is never destroyed - clicking outside editor does not make the toolbar disabled Change-Id: I2b28240f129bd0dc85809a1592d3b4fbb97fad51

Modified Files

Name
M lib/frontend/prose-mirror-editor/po/fr_FR.po +0 −3 Go to diff View file
M lib/frontend/prose-mirror-editor/src/helpers/replace-link-node.ts +1 −1 Go to diff View file
M lib/frontend/prose-mirror-editor/src/index.ts +1 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/link-popover/link-popover.ts +3 −2 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/helper/BuildMenuItem.ts +54 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/helper/BuildMenuItemWithCommand.test.ts +64 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/helper/BuildMenuItemWithCommand.ts +41 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/helper/IsMarkActiveChecker.test.ts +62 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/helper/IsMarkActiveChecker.ts +34 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/helper/MonoToolbarActionActivator.ts +42 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/helper/MonoToolbarToggler.ts +32 −0 Go to diff View file
R lib/frontend/prose-mirror-editor/src/plugins/toolbar/helper/node-info-retriever.test.ts Go to diff View file
R lib/frontend/prose-mirror-editor/src/plugins/toolbar/helper/node-info-retriever.ts Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/helper/stubs/CheckIsMArkActiveStubs.ts +34 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/helper/toolbar-bus.ts +47 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/index.ts +19 −2 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/links/input-value-updater.test.ts +1 −4 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/links/input-value-updater.ts +2 −2 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/links/link-menu-item-builder.ts +10 −5 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/list/list-menu-item-builder.ts +6 −2 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/menu.ts +34 −57 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/mono-toolbar.ts +52 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/text-transformations/text-transformations-menu-item.ts +13 −5 Go to diff View file
M lib/frontend/prose-mirror-editor/src/use-editor.ts +3 −1 Go to diff View file
M plugins/artidoc/scripts/artidoc/po/fr_FR.po +3 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/DocumentContent.vue +2 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/section/description/SectionDescriptionEditorProseMirror.vue +3 −0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/components/toolbar/EditorToolbar.test.ts +69 −0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/components/toolbar/EditorToolbar.vue +80 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/index.ts +4 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/themes/includes/_zindex.scss +3 −0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/toolbar-bus-injection-key.ts +24 −0 Go to diff View file