mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-12 15:11:10 +08:00
This commit is contained in:
parent
7342146fa8
commit
dff6c0c7fc
@ -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…
Reference in New Issue
Block a user