mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -970,7 +970,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
|
||||
}
|
||||
const actionElementId = actionElement.getAttribute("data-node-id");
|
||||
if (selectText !== "") {
|
||||
writeText(`((${actionElementId} "${selectText}"))`);
|
||||
writeText(`((${actionElementId} "${Lute.EscapeHTMLStr(selectText)}"))`);
|
||||
} else {
|
||||
fetchPost("/api/block/getRefText", {id: actionElementId}, (response) => {
|
||||
writeText(`((${actionElementId} '${response.data}'))`);
|
||||
|
||||
Reference in New Issue
Block a user