This commit is contained in:
Vanessa 2024-01-09 21:47:02 +08:00
parent 79d88a0526
commit d832bfae1c

View file

@ -1041,7 +1041,8 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
parentID: protyle.block.rootID,
markdown: ""
}, response => {
insertHTML(`<span data-type="block-ref" data-id="${response.data}" data-subtype="d">${escapeHtml(newFileName.substring(0, window.siyuan.config.editor.blockRefDynamicAnchorTextMaxLen))}</span>`, protyle);
insertHTML(`<span data-type="block-ref" data-id="${response.data}" data-subtype="d">${escapeHtml(newFileName.substring(0, window.siyuan.config.editor.blockRefDynamicAnchorTextMaxLen))}</span>`,
protyle, false, true);
hideElements(["toolbar"], protyle);
});
});