Skip to content

Build your personal knowledge base with Trilium Notes

client/text editor: fix an issue

Adorian Doran6eddcbbe386a
diff --git a/packages/ckeditor5/src/plugins/referencelink.spec.ts b/packages/ckeditor5/src/plugins/referencelink.spec.ts
index 7ffb8b3db9..573f61b9a4 100644
--- a/packages/ckeditor5/src/plugins/referencelink.spec.ts
+++ b/packages/ckeditor5/src/plugins/referencelink.spec.ts
@@ -242,8 +242,10 @@ describe("ReferenceLink", () => {
it("redraws the links to a renamed attachment without changing the document", () => {
const href = "#root/owner?viewMode=attachments&attachmentId=renamed";
- const htmlHref = href.replace("&", "&");
- editor.setData(`<p><a class="reference-link" href="${htmlHref}">a</a></p>`);
+ editor.setData(
+ "<p><a class=\"reference-link\" "
+ + "href=\"#root/owner?viewMode=attachments&amp;attachmentId=renamed\">a</a></p>"
+ );
const before = getModelData(editor.model);
loadReferenceLinkTitle.mockClear();