mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 00:20:12 +01:00
Merge d806ba48f2 into db4fb41024
This commit is contained in:
commit
a937f1e6e4
1 changed files with 0 additions and 3 deletions
|
|
@ -396,7 +396,6 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (operation.action === "unfoldHeading") {
|
if (operation.action === "unfoldHeading") {
|
||||||
const scrollTop = protyle.contentElement.scrollTop;
|
|
||||||
protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${operation.id}"]`).forEach(item => {
|
protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${operation.id}"]`).forEach(item => {
|
||||||
item.removeAttribute("fold");
|
item.removeAttribute("fold");
|
||||||
// undo 会走 transaction
|
// undo 会走 transaction
|
||||||
|
|
@ -425,8 +424,6 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:
|
||||||
highlightRender(protyle.wysiwyg.element);
|
highlightRender(protyle.wysiwyg.element);
|
||||||
avRender(protyle.wysiwyg.element, protyle);
|
avRender(protyle.wysiwyg.element, protyle);
|
||||||
blockRender(protyle, protyle.wysiwyg.element);
|
blockRender(protyle, protyle.wysiwyg.element);
|
||||||
protyle.contentElement.scrollTop = scrollTop;
|
|
||||||
protyle.scroll.lastScrollTop = scrollTop;
|
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue