mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
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(() => {
|
transactionsTimeout = window.setTimeout(() => {
|
||||||
promiseTransaction();
|
promiseTransaction();
|
||||||
}, Constants.TIMEOUT_INPUT * 2);
|
}, 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) => {
|
export const updateTransaction = (protyle: IProtyle, id: string, newHTML: string, html: string) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue