mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
This commit is contained in:
parent
f9cfc72142
commit
91f3ff61c8
1 changed files with 3 additions and 1 deletions
|
|
@ -154,7 +154,9 @@ export class Title {
|
|||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
} else if (matchHotKey(window.siyuan.config.keymap.editor.general.copyBlockRef.custom, event)) {
|
||||
writeText(`((${protyle.block.rootID} '${this.editElement.textContent.replace(/'/g, "'")}'))`);
|
||||
fetchPost("/api/block/getRefText", {id: protyle.block.rootID}, (response) => {
|
||||
writeText(`((${protyle.block.rootID} '${response.data}'))`);
|
||||
});
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
} else if (matchHotKey(window.siyuan.config.keymap.editor.general.copyID.custom, event)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue