mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-21 15:56:10 +01:00
🐛 在数学公式输入框中撤销到最后一步,再继续撤销会撤销编辑器正文内容,从而出发 input 事件
This commit is contained in:
parent
84a2e5380c
commit
137e5039f9
1 changed files with 3 additions and 2 deletions
|
|
@ -116,6 +116,9 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:
|
|||
}
|
||||
html = protyle.lute.SpinBlockDOM(html);
|
||||
}
|
||||
// 在数学公式输入框中撤销到最后一步,再继续撤销会撤销编辑器正文内容,从而出发 input 事件
|
||||
protyle.toolbar.subElement.classList.add("fn__none");
|
||||
|
||||
const tempElement = document.createElement("template");
|
||||
tempElement.innerHTML = html;
|
||||
if (needRender && (
|
||||
|
|
@ -181,8 +184,6 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:
|
|||
protyle.hint.render(protyle);
|
||||
}
|
||||
hideElements(["gutter"], protyle);
|
||||
// 在数学公式输入框中撤销到最后一步,再继续撤销会撤销编辑器正文内容,从而出发 input 事件
|
||||
protyle.toolbar.subElement.classList.add("fn__none");
|
||||
updateInput(html, protyle, id, type, todoOldHTML);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue