mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-18 01:50:58 +08:00
This commit is contained in:
parent
e3600ee253
commit
accbeba593
@ -208,7 +208,10 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
|
|||||||
tempElement.innerHTML = textHTML.substr(1).replace('<meta charset="utf-8">', "");
|
tempElement.innerHTML = textHTML.substr(1).replace('<meta charset="utf-8">', "");
|
||||||
let isBlock = false;
|
let isBlock = false;
|
||||||
tempElement.querySelectorAll("[data-node-id]").forEach((e) => {
|
tempElement.querySelectorAll("[data-node-id]").forEach((e) => {
|
||||||
|
const newId = Lute.NewNodeID();
|
||||||
|
e.setAttribute("data-node-id", newId);
|
||||||
e.classList.remove("protyle-wysiwyg--select", "protyle-wysiwyg--hl");
|
e.classList.remove("protyle-wysiwyg--select", "protyle-wysiwyg--hl");
|
||||||
|
e.setAttribute("updated", newId.split("-")[0]);
|
||||||
isBlock = true;
|
isBlock = true;
|
||||||
});
|
});
|
||||||
if (nodeElement.classList.contains("table")) {
|
if (nodeElement.classList.contains("table")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user