mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-28 20:38:49 +01:00
This commit is contained in:
parent
dd57a73832
commit
7ad8e74e00
1 changed files with 2 additions and 1 deletions
|
|
@ -15,7 +15,8 @@ export const cancelSB = (protyle: IProtyle, nodeElement: Element) => {
|
|||
nodeElement.removeAttribute("select-start");
|
||||
nodeElement.removeAttribute("select-end");
|
||||
const id = nodeElement.getAttribute("data-node-id");
|
||||
const sbElement = genSBElement(nodeElement.getAttribute("data-sb-layout"), id, nodeElement.lastElementChild.outerHTML);
|
||||
const sbElement = nodeElement.cloneNode() as HTMLElement;
|
||||
sbElement.innerHTML = nodeElement.lastElementChild.outerHTML;
|
||||
undoOperations.push({
|
||||
action: "insert",
|
||||
id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue