stable

Clone or download

Read-only

feat: copy xref instead of link url

part of story #38627 : Choice of a new Rich Text Editor note: There were a bug where the open link button was broken, and was redirecting the user to the current document. Since the strategy to render the buttons has changed, this bug no longer exists. How to test: - Pick up an editor containing a regular url and a cross reference - Click on the regular url - Hover the "copy to clipboard" button --> It says "copy link url" - Click it and paste the content somewhere --> The url of the link has been pasted - Click on the cross reference - Hover the "copy to clipboard" button --> It says "copy the Tuleap reference" - Click it and paste the content somewhere --> The Tuleap reference has been pasted Change-Id: Id5636b069bc4be368c842ad18748e31e391d7da3

Modified Files

Name
M lib/frontend/prose-mirror-editor/po/fr_FR.po +6 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/link-popover/element/LinkPopoverElement.ts +10 −5 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/link-popover/element/LinkPopoverTemplate.ts +2 −10 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/link-popover/element/items/CopyToClipboardButtonElement.test.ts +2 −2 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/link-popover/element/items/CopyToClipboardButtonElement.ts +32 −7 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/link-popover/element/items/OpenLinkButtonElement.ts +25 −1 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/link-popover/element/items/button-creator.test.ts +63 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/link-popover/element/items/button-creator.ts +38 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/link-popover/helper/link-popover-inserter.test.ts +21 −3 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/link-popover/helper/link-popover-inserter.ts +57 −5 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/link-popover/link-popover.ts +28 −16 Go to diff View file