stable

Clone or download

Read-only

fix: when selection has more than one link, toolbar button should be disabled

When the user selects a node or multiple nodes with multiple occurrences of links, the create link toolbar button should be disabled. part of story #38627 : Choice of a new Rich Text Editor Change-Id: I73163cc6b3e4521a48560a143e2ee678febbe857

Modified Files

Name
A lib/frontend/prose-mirror-editor/src/helpers/is-mark-type-repeated-in-selection.test.ts +61 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/helpers/is-mark-type-repeated-in-selection.ts +35 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/toolbar/links/link-menu-item-builder.ts +4 −0 Go to diff View file