This commit is contained in:
Vanessa 2022-08-31 22:36:53 +08:00
parent 78d69af54e
commit 43dfab71db

View file

@ -224,6 +224,10 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
e.setAttribute("updated", newId.split("-")[0]);
}
});
// 从历史中复制后粘贴
tempElement.querySelectorAll('[spellcheck="false"][contenteditable="false"]').forEach((e) => {
e.setAttribute("contenteditable", "true");
});
const tempInnerHTML = tempElement.innerHTML;
insertHTML(tempInnerHTML, protyle);
filterClipboardHint(protyle, tempInnerHTML);