This commit is contained in:
parent
c5b323c391
commit
ff8d2acb9b
1 changed files with 8 additions and 0 deletions
|
@ -1191,6 +1191,14 @@ export const transaction = (protyle: IProtyle, doOperations: IOperation[], undoO
|
|||
transactionsTimeout = window.setTimeout(() => {
|
||||
promiseTransaction();
|
||||
}, Constants.TIMEOUT_INPUT * 2);
|
||||
|
||||
// 插入块后会导致高度变化,从而产生再次定位 https://github.com/siyuan-note/siyuan/issues/11798
|
||||
doOperations.find(item => {
|
||||
if (item.action === "insert") {
|
||||
protyle.observerLoad.disconnect()
|
||||
return true;
|
||||
}
|
||||
})
|
||||
};
|
||||
|
||||
export const updateTransaction = (protyle: IProtyle, id: string, newHTML: string, html: string) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue