mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 18:01:15 +08:00
This commit is contained in:
parent
2fa11137a0
commit
5cd040b302
@ -482,6 +482,7 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:
|
|||||||
// 缩放后仅更新局部 https://github.com/siyuan-note/siyuan/issues/14326
|
// 缩放后仅更新局部 https://github.com/siyuan-note/siyuan/issues/14326
|
||||||
if (updateElements.length === 0) {
|
if (updateElements.length === 0) {
|
||||||
const newUpdateElement = protyle.wysiwyg.element.querySelector("[data-node-id]");
|
const newUpdateElement = protyle.wysiwyg.element.querySelector("[data-node-id]");
|
||||||
|
if (newUpdateElement) {
|
||||||
const newUpdateId = newUpdateElement.getAttribute("data-node-id");
|
const newUpdateId = newUpdateElement.getAttribute("data-node-id");
|
||||||
const tempElement = document.createElement("template");
|
const tempElement = document.createElement("template");
|
||||||
tempElement.innerHTML = operation.data;
|
tempElement.innerHTML = operation.data;
|
||||||
@ -497,6 +498,7 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (updateElements.length > 0) {
|
if (updateElements.length > 0) {
|
||||||
updateBlock(updateElements, protyle, operation, isUndo);
|
updateBlock(updateElements, protyle, operation, isUndo);
|
||||||
} else if (isUndo) {
|
} else if (isUndo) {
|
||||||
|
Loading…
Reference in New Issue
Block a user