Vanessa 2025-11-24 12:20:40 +08:00
parent 520aaf13a0
commit ce4ab75c9e

View file

@ -316,6 +316,7 @@ export const duplicateBlock = async (nodeElements: Element[], protyle: IProtyle)
tempElement.setAttribute("data-node-id", newId); tempElement.setAttribute("data-node-id", newId);
tempElement.setAttribute("updated", newId.split("-")[0]); tempElement.setAttribute("updated", newId.split("-")[0]);
clearBlockElement(tempElement); clearBlockElement(tempElement);
tempElement.classList.add("protyle-wysiwyg--select");
tempElement.querySelectorAll("[data-node-id]").forEach(childItem => { tempElement.querySelectorAll("[data-node-id]").forEach(childItem => {
const subNewId = Lute.NewNodeID(); const subNewId = Lute.NewNodeID();
childItem.setAttribute("data-node-id", subNewId); childItem.setAttribute("data-node-id", subNewId);