mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
🚨
This commit is contained in:
parent
7577933461
commit
19079acfc3
4 changed files with 8 additions and 9 deletions
|
|
@ -494,9 +494,9 @@ export const removeAttrViewColAnimation = (blockElement: Element, id: string) =>
|
|||
|
||||
export const duplicateCompletely = (protyle:IProtyle, nodeElement:HTMLElement) => {
|
||||
fetchPost("/api/av/duplicateAttributeViewBlock", {avID: nodeElement.getAttribute("data-av-id")}, (response) => {
|
||||
nodeElement.classList.remove("protyle-wysiwyg--select")
|
||||
nodeElement.classList.remove("protyle-wysiwyg--select");
|
||||
const tempElement = document.createElement("template");
|
||||
tempElement.innerHTML = protyle.lute.SpinBlockDOM(`<div data-node-id="${response.data.blockID}" data-av-id="${response.data.avID}" data-type="NodeAttributeView" data-av-type="table"></div>`)
|
||||
tempElement.innerHTML = protyle.lute.SpinBlockDOM(`<div data-node-id="${response.data.blockID}" data-av-id="${response.data.avID}" data-type="NodeAttributeView" data-av-type="table"></div>`);
|
||||
const cloneElement = tempElement.content.firstElementChild;
|
||||
nodeElement.after(cloneElement);
|
||||
avRender(cloneElement, protyle, () => {
|
||||
|
|
@ -513,4 +513,4 @@ export const duplicateCompletely = (protyle:IProtyle, nodeElement:HTMLElement) =
|
|||
id: response.data.blockID,
|
||||
}]);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue