stable

Clone or download

Read-only

feat: Have an edit reference button and a form

part of story #38627 : Choice of a new Rich Text Editor Please note that it is expected that nothing happens when you submit the new cross reference. This contribution introduces only the UI part. The update of an existing cross reference does not exist yet, and thus has to be entierly implemented (big patch). To ease the review, I've split the feature in several patches. How to test: - Click on an existing cross-reference - Click on the pencil button in the popover --> A form to edit the reference is displayed - Update the cross reference and submit --> The popover close --> Nothin happens (refer to the first paragraph of the commit message) Change-Id: I02ef9c887c329b65d17a275afcc8ae8d2502716a

Modified Files

Name
M lib/frontend/prose-mirror-editor/po/fr_FR.po +9 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/link-popover/element/LinkPopoverButtonsRenderers.test.ts +2 −1 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/link-popover/element/LinkPopoverButtonsRenderers.ts +8 −1 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/link-popover/element/LinkPopoverEditionFormRenderers.ts +20 −5 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/link-popover/element/forms/EditCrossReferenceFormElement.test.ts +79 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/link-popover/element/forms/EditCrossReferenceFormElement.ts +80 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/link-popover/element/forms/EditCrossReferenceFormTemplate.test.ts +80 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/link-popover/element/forms/EditCrossReferenceFormTemplate.ts +82 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/link-popover/helper/LinkPopoverInserter.test.ts +2 −1 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/link-popover/helper/LinkPopoverInserter.ts +11 −2 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/link-popover/helper/create-link-popover.test.ts +1 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/link-popover/helper/create-link-popover.ts +7 −2 Go to diff View file