stable

Clone or download

Read-only

[toolbar] we should not select exact text in order to update a link

part of story #38627 : Choice of a new Rich Text Editor How to test: - create a new link => no functional changes, popover has selected text in input `Text` - have an existing link => click on link => popover has selected text link in input `Text` => save: link is porpoerly saved Change-Id: I4bccf10adc7dd5c72b613f54efae56e7990ba38d

Modified Files

Name
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/helper/node-info-retriever.test.ts +62 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/helper/node-info-retriever.ts +69 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/links/input-value-updater.test.ts +154 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/links/input-value-updater.ts +48 −20 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/links/link-menu-item-builder.ts +11 −6 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/links/popover-link.ts +14 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/links/remove-link.test.ts +68 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/toolbar/links/remove-link.ts +73 −0 Go to diff View file