stable

Clone or download

Read-only

feat: have an edit|create link button and popover in toolbar

part of: story #38627 : Choice of a new Rich Text Editor Note: There is an "issue" when, if you open the popover and select some text inside the editor, the popover stays open. We'll see if this behavior needs to be fixed later. How to test: --> It should behave exactly like the old popover inside the prose-mirror toolbar Change-Id: I73827b4ef646742a592ccd6326636630be468cc1

Modified Files

Name
M lib/frontend/prose-mirror-editor-toolbar/package.json +1 −0 Go to diff View file
M lib/frontend/prose-mirror-editor-toolbar/pnpm-lock.yaml +3 −0 Go to diff View file
M lib/frontend/prose-mirror-editor-toolbar/po/fr_FR.po +21 −0 Go to diff View file
A lib/frontend/prose-mirror-editor-toolbar/src/elements/buttons/link/link-button-template.test.ts +64 −0 Go to diff View file
A lib/frontend/prose-mirror-editor-toolbar/src/elements/buttons/link/link-button-template.ts +42 −0 Go to diff View file
A lib/frontend/prose-mirror-editor-toolbar/src/elements/buttons/link/link-popover-template.test.ts +106 −0 Go to diff View file
A lib/frontend/prose-mirror-editor-toolbar/src/elements/buttons/link/link-popover-template.ts +107 −0 Go to diff View file
A lib/frontend/prose-mirror-editor-toolbar/src/elements/buttons/link/link.test.ts +113 −0 Go to diff View file
A lib/frontend/prose-mirror-editor-toolbar/src/elements/buttons/link/link.ts +106 −0 Go to diff View file
M lib/frontend/prose-mirror-editor-toolbar/src/elements/styles.scss +4 −0 Go to diff View file
M lib/frontend/prose-mirror-editor-toolbar/src/elements/toolbar-element.ts +14 −1 Go to diff View file
M lib/frontend/prose-mirror-editor/po/fr_FR.po +0 −9 Go to diff View file
R lib/frontend/prose-mirror-editor/src/helpers/is-mark-type-repeated-in-selection.test.ts Go to diff View file
R lib/frontend/prose-mirror-editor/src/helpers/is-mark-type-repeated-in-selection.ts Go to diff View file
R lib/frontend/prose-mirror-editor/src/plugins/link-popover/helper/LinkUrlExtractor.test.ts Go to diff View file
R lib/frontend/prose-mirror-editor/src/plugins/link-popover/helper/LinkUrlExtractor.ts Go to diff View file
A lib/frontend/prose-mirror-editor/src/helpers/stubs/CheckIsMarkTypeRepeatedInSelectionStub.ts +29 −0 Go to diff View file
R lib/frontend/prose-mirror-editor/src/plugins/link-popover/helper/stubs/EditorLinkNodeUrlExtractorStub.ts Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/link-popover/helper/LinkPopoverInserter.test.ts +23 −17 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/link-popover/helper/LinkPopoverInserter.ts +51 −37 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/link-popover/link-popover.ts +2 −2 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/helper/MonoToolbarActionActivator.ts +10 −11 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/helper/toolbar-bus.ts +11 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/index.ts +1 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/links/LinkState.test.ts +57 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/links/LinkState.ts +48 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/links/LinkStateBuilder.test.ts +68 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/links/LinkStateBuilder.ts +57 −0 Go to diff View file
D lib/frontend/prose-mirror-editor/src/plugins/toolbar/links/input-value-updater.test.ts +0 −151 Go to diff View file
D lib/frontend/prose-mirror-editor/src/plugins/toolbar/links/input-value-updater.ts +0 −106 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/links/link-menu-item-builder.ts +0 −50 Go to diff View file
D lib/frontend/prose-mirror-editor/src/plugins/toolbar/links/popover-link.ts +0 −164 Go to diff View file
D lib/frontend/prose-mirror-editor/src/plugins/toolbar/links/popover-links.test.ts +0 −60 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/menu.ts +1 −2 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/mono-toolbar.ts +19 −3 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/popover/fields-adder.test.ts +2 −2 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/popover/fields-adder.ts +1 −1 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/toolbar/EditorToolbar.vue +1 −0 Go to diff View file