This commit is contained in:
Vanessa 2023-10-28 15:59:21 +08:00
parent b4f8b676d6
commit fb220ae122
2 changed files with 5 additions and 6 deletions

View file

@ -366,7 +366,7 @@ const editKeydown = (app: App, event: KeyboardEvent) => {
const actionElementId = actionElement.getAttribute("data-node-id");
if (range.toString() !== "") {
getContentByInlineHTML(range, (content) => {
writeText(`((${actionElementId} "${Lute.EscapeHTMLStr(content.trim())}"))`);
writeText(`((${actionElementId} "${content.trim()}"))`);
});
} else {
fetchPost("/api/block/getRefText", {id: actionElementId}, (response) => {