stable

Clone or download

Read-only

[issue] reference replacement can go wrong

part of story #38627 : Choice of a new Rich Text Editor When you have an existing reference art #12, and a non existing reference art #123, the replacement goes wrong: art #12, is correctly replaced, art #123 becomes [art #12](https://example.com)3 Change-Id: I9b295fa1948890f794e9cb99f67214c4bed32ba9

Modified Files

Name
M lib/frontend/prose-mirror-editor/src/helpers/create-cross-reference-decoration.test.ts +1 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/helpers/create-cross-reference-decoration.ts +1 −1 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/extract-referencies/cross-ref-loader.ts +11 −3 Go to diff View file
R lib/frontend/prose-mirror-editor/src/plugins/extract-referencies/link-decorator.test.ts Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/extract-referencies/cross-references-decorator.ts +58 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/extract-referencies/helpers/ContextLengthPositionComputer.test.ts +45 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/extract-referencies/helpers/ContextLengthPositionComputer.ts +35 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/extract-referencies/helpers/DescendentsContainingReferenceFinder.test.ts +66 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/extract-referencies/helpers/DescendentsContainingReferenceFinder.ts +45 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/extract-referencies/helpers/ParentNodeRetriever.test.ts +39 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/extract-referencies/helpers/ParentNodeRetriever.ts +32 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/extract-referencies/helpers/ReferencePositionComputer.test.ts +65 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/extract-referencies/helpers/ReferencePositionComputer.ts +66 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/extract-referencies/helpers/ReferenceWithContextGetter.test.ts +47 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/extract-referencies/helpers/ReferenceWithContextGetter.ts +35 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/extract-referencies/helpers/stubs/NodePositionContainingReferenceFinderStub.ts +28 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/extract-referencies/helpers/stubs/ParentNodeRetrieverStub.ts +27 −0 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/extract-referencies/helpers/stubs/ReferencePositionComputerStub.ts +26 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/extract-referencies/index.ts +16 −3 Go to diff View file
A lib/frontend/prose-mirror-editor/src/plugins/extract-referencies/integration/references-decorator.test.ts +173 −0 Go to diff View file
D lib/frontend/prose-mirror-editor/src/plugins/extract-referencies/link-decorator.ts +0 −48 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/extract-referencies/reference-extractor.ts +1 −0 Go to diff View file
D lib/frontend/prose-mirror-editor/src/plugins/extract-referencies/reference-position-finder.test.ts +0 −71 Go to diff View file
D lib/frontend/prose-mirror-editor/src/plugins/extract-referencies/reference-position-finder.ts +0 −57 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/extract-referencies/update/CrossReferenceDecorationFinder.test.ts +2 −0 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/extract-referencies/update/CrossReferenceDecorationReplacer.test.ts +1 −1 Go to diff View file
M lib/frontend/prose-mirror-editor/src/plugins/extract-referencies/update/UpdateCrossReferenceHandler.test.ts +1 −1 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/helpers/artifact-section.factory.ts +1 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/helpers/pending-artifact-section.factory.ts +1 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/stores/useSectionsStore.ts +1 −0 Go to diff View file
M src/common/Project/REST/v1/ProjectResource.class.php +1 −0 Go to diff View file
M tests/rest/tests/ProjectTest.php +1 −0 Go to diff View file