This commit is contained in:
Vanessa 2022-09-05 22:17:05 +08:00
parent 009f59a8d1
commit ab9fb8565f

View file

@ -101,7 +101,7 @@ export class Title {
event.preventDefault(); event.preventDefault();
event.stopPropagation(); event.stopPropagation();
} else if (matchHotKey(window.siyuan.config.keymap.editor.general.copyBlockRef.custom, event)) { } else if (matchHotKey(window.siyuan.config.keymap.editor.general.copyBlockRef.custom, event)) {
writeText(`((${protyle.block.rootID} '${this.editElement.textContent}'))`); writeText(`((${protyle.block.rootID} '${this.editElement.textContent.replace(/'/g, "'")}'))`);
event.preventDefault(); event.preventDefault();
event.stopPropagation(); event.stopPropagation();
} else if (matchHotKey(window.siyuan.config.keymap.editor.general.copyID.custom, event)) { } else if (matchHotKey(window.siyuan.config.keymap.editor.general.copyID.custom, event)) {