mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
This commit is contained in:
parent
78d69af54e
commit
43dfab71db
1 changed files with 4 additions and 0 deletions
|
|
@ -224,6 +224,10 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
|
||||||
e.setAttribute("updated", newId.split("-")[0]);
|
e.setAttribute("updated", newId.split("-")[0]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
// 从历史中复制后粘贴
|
||||||
|
tempElement.querySelectorAll('[spellcheck="false"][contenteditable="false"]').forEach((e) => {
|
||||||
|
e.setAttribute("contenteditable", "true");
|
||||||
|
});
|
||||||
const tempInnerHTML = tempElement.innerHTML;
|
const tempInnerHTML = tempElement.innerHTML;
|
||||||
insertHTML(tempInnerHTML, protyle);
|
insertHTML(tempInnerHTML, protyle);
|
||||||
filterClipboardHint(protyle, tempInnerHTML);
|
filterClipboardHint(protyle, tempInnerHTML);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue