Skip to content

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

packages/frontend/core/src/components/blocksuite/block-suite-editor/specs/custom/database-block.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,13 @@ function createCopyLinkToBlockMenuItem(
7373
if (!str) return;
7474

7575
const type = model.flavour;
76-
const title = editor.doc.title$.value;
7776
const page = editor.editorContainer$.value;
7877

7978
page?.host?.std.clipboard
8079
.writeToClipboard(items => {
8180
items['text/plain'] = str;
8281
// wrap a link
83-
items['text/html'] = `<a title="${title}" href="${str}">${title}</a>`;
82+
items['text/html'] = `<a href="${str}">${str}</a>`;
8483
return items;
8584
})
8685
.then(() => {

packages/frontend/core/src/components/blocksuite/block-suite-editor/specs/custom/widgets/toolbar.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,11 @@ function createCopyLinkToBlockMenuItem(
114114
return;
115115
}
116116

117-
const title = editor.doc.title$.value;
118-
119117
ctx.std.clipboard
120118
.writeToClipboard(items => {
121119
items['text/plain'] = str;
122120
// wrap a link
123-
items['text/html'] = `<a title="${title}" href="${str}">${title}</a>`;
121+
items['text/html'] = `<a href="${str}">${str}</a>`;
124122
return items;
125123
})
126124
.then(() => {

0 commit comments

Comments
 (0)