There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix(core): should wrap link text (#8249)
fundon85448e2d6b4c
diff --git a/packages/frontend/core/src/components/blocksuite/block-suite-editor/specs/custom/database-block.ts b/packages/frontend/core/src/components/blocksuite/block-suite-editor/specs/custom/database-block.tsindex 7cdb0a6c68..95736bf209 100644--- a/packages/frontend/core/src/components/blocksuite/block-suite-editor/specs/custom/database-block.ts+++ b/packages/frontend/core/src/components/blocksuite/block-suite-editor/specs/custom/database-block.ts@@ -73,14 +73,13 @@ function createCopyLinkToBlockMenuItem(if (!str) return;const type = model.flavour;- const title = editor.doc.title$.value;const page = editor.editorContainer$.value;page?.host?.std.clipboard.writeToClipboard(items => {items['text/plain'] = str;// wrap a link- items['text/html'] = `<a title="${title}" href="${str}">${title}</a>`;+ items['text/html'] = `<a href="${str}">${str}</a>`;return items;}).then(() => {diff --git a/packages/frontend/core/src/components/blocksuite/block-suite-editor/specs/custom/widgets/toolbar.ts b/packages/frontend/core/src/components/blocksuite/block-suite-editor/specs/custom/widgets/toolbar.tsindex b8285b6e66..13981f92a1 100644--- a/packages/frontend/core/src/components/blocksuite/block-suite-editor/specs/custom/widgets/toolbar.ts+++ b/packages/frontend/core/src/components/blocksuite/block-suite-editor/specs/custom/widgets/toolbar.ts@@ -114,13 +114,11 @@ function createCopyLinkToBlockMenuItem(return;}- const title = editor.doc.title$.value;-ctx.std.clipboard.writeToClipboard(items => {items['text/plain'] = str;// wrap a link- items['text/html'] = `<a title="${title}" href="${str}">${title}</a>`;+ items['text/html'] = `<a href="${str}">${str}</a>`;return items;}).then(() => {