This commit is contained in:
parent
5a3af99017
commit
fea957731b
1 changed files with 1 additions and 1 deletions
|
@ -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}'))`);
|
||||
|
|
Loading…
Add table
Reference in a new issue