mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
This commit is contained in:
parent
520aaf13a0
commit
ce4ab75c9e
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue