stable

Clone or download

Read-only

feat: ability to copy link url

part of story #38627 : Choice of a new Rich Text Editor Note: I had to downgrade hybrids to 9.1.1 because of a breaking change introduced in version 9.1.2 making the component crash when it passes properties to children components. I'll try to find a way around during the next big hybrids upgrade in the whole codebase (other hybrids components use 9.0.0). How to test: - Click on a link in an editor --> A popover menu opens --> It contains a "copy to clipboad" button - Click it --> The url has been copied to clipboard --> The icon of the button changes to fa-check for 2s before changing back to fa-copy. Change-Id: Ia733bdebc6c383402a210334c5d947674552c66e

Modified Files

Name
M lib/frontend/prose-mirror-editor/package.json +2 −1 Go to diff View file
M lib/frontend/prose-mirror-editor/pnpm-lock.yaml +7 −4 Go to diff View file
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/LinkPopoverTemplate.ts +16 −17 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/link-popover/element/items/CopyToClipboardButtonElement.test.ts +58 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/link-popover/element/items/CopyToClipboardButtonElement.ts +83 −0 Go to diff View file
R lib/frontend/prose-mirror-editor/src/plugins/link-popover/element/LinkPopoverTemplate.test.ts Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/link-popover/element/items/OpenLinkButtonElement.ts +59 −0 Go to diff View file