stable
Clone or download
Read-only
When the user selects multiple links and clicks on remove links button, it should remove all selected links. When the user selects text with links, we search the index of the first link and the end of the last link to update the selection positions to be sure to include all links. The remove-links has been moved from src/helpers to link/helpers. part of story #38627 : Choice of a new Rich Text Editor Change-Id: I8d52163848bed0032897d49b7ad2a2a40407b007
Modified Files
Name | ||||
---|---|---|---|---|
D | lib/frontend/prose-mirror-editor/src/helpers/remove-link.test.ts | +0 | β68 | Go to diff View file |
D | lib/frontend/prose-mirror-editor/src/helpers/remove-link.ts | +0 | β73 | Go to diff View file |
M | lib/frontend/prose-mirror-editor/src/plugins/link-popover/helper/RemoveLinkCallbackBuilder.test.ts | +4 | β4 | Go to diff View file |
M | lib/frontend/prose-mirror-editor/src/plugins/link-popover/helper/RemoveLinkCallbackBuilder.ts | +2 | β2 | Go to diff View file |
A | lib/frontend/prose-mirror-editor/src/plugins/link-popover/helper/get-selection-that-wraps-all-selected-links.test.ts | +117 | β0 | Go to diff View file |
A | lib/frontend/prose-mirror-editor/src/plugins/link-popover/helper/get-selection-that-wraps-all-selected-links.ts | +66 | β0 | Go to diff View file |
A | lib/frontend/prose-mirror-editor/src/plugins/link-popover/helper/remove-selected-links.test.ts | +53 | β0 | Go to diff View file |
A | lib/frontend/prose-mirror-editor/src/plugins/link-popover/helper/remove-selected-links.ts | +36 | β0 | Go to diff View file |
M | lib/frontend/prose-mirror-editor/src/plugins/toolbar/links/link-menu-item-builder.ts | +2 | β2 | Go to diff View file |