mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
This commit is contained in:
parent
7342146fa8
commit
dff6c0c7fc
1 changed files with 2 additions and 1 deletions
|
|
@ -170,7 +170,8 @@ const dragSb = (protyle: IProtyle, sourceElements: Element[], targetElement: Ele
|
||||||
if (item.classList.contains("protyle-attr")) {
|
if (item.classList.contains("protyle-attr")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
undoOperations.push({
|
// 撤销更新不能位于最后,否则又更新为最新结果 https://github.com/siyuan-note/siyuan/issues/5725
|
||||||
|
undoOperations.splice(0, 0, {
|
||||||
action: "update",
|
action: "update",
|
||||||
id: item.getAttribute("data-node-id"),
|
id: item.getAttribute("data-node-id"),
|
||||||
data: item.outerHTML
|
data: item.outerHTML
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue