mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-08 09:48:50 +01:00
🎨 https://github.com/siyuan-note/siyuan/issues/14326 #issuecomment-2727527008
This commit is contained in:
parent
2763368643
commit
1a5bb8d9ef
1 changed files with 1 additions and 1 deletions
|
|
@ -472,7 +472,7 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:
|
|||
if (operation.action === "update") {
|
||||
// 缩放后仅更新局部 https://github.com/siyuan-note/siyuan/issues/14326
|
||||
if (updateElements.length === 0) {
|
||||
const newUpdateElement = protyle.wysiwyg.element.firstElementChild;
|
||||
const newUpdateElement = protyle.wysiwyg.element.querySelector('[data-node-id]');
|
||||
const newUpdateId = newUpdateElement.getAttribute("data-node-id");
|
||||
const tempElement = document.createElement("template");
|
||||
tempElement.innerHTML = operation.data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue