stable

Clone or download

Read-only

feat: Have a remove link button in links popovers

part of story #38627 : Choice of a new Rich Text Editor How to test: - Click on a regular link inside an editor (not a cross-ref) - Click on the "remove link" button --> The link has been removed --> The popover has been destroyed Change-Id: I095f18efa50fc10286e910bac93ff551b6a2fb3f

Modified Files

Name
M lib/frontend/prose-mirror-editor/po/fr_FR.po +3 −0 Go to diff View file
R lib/frontend/prose-mirror-editor/src/plugins/toolbar/links/remove-link.test.ts Go to diff View file
R lib/frontend/prose-mirror-editor/src/plugins/toolbar/links/remove-link.ts Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/link-popover/element/LinkPopoverElement.ts +2 −1 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/link-popover/element/items/RemoveLinkButton.test.ts +53 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/link-popover/element/items/RemoveLinkButton.ts +81 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/link-popover/element/items/button-creator.test.ts +19 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/link-popover/element/items/button-creator.ts +3 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/link-popover/helper/LinkPopoverInserter.test.ts +6 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/link-popover/helper/LinkPopoverInserter.ts +10 −1 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/link-popover/helper/RemoveLinkCallbackBuilder.test.ts +53 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/link-popover/helper/RemoveLinkCallbackBuilder.ts +39 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/link-popover/helper/create-link-popover.test.ts +5 −2 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/link-popover/helper/create-link-popover.ts +15 −6 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/link-popover/helper/stubs/BuildRemoveLinkCallbackStub.ts +27 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/link-popover/link-popover.ts +2 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/links/link-menu-item-builder.ts +1 −1 Go to diff View file