An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: 在数学公式输入框中撤销到最后一步,再继续撤销会撤销编辑器正文内容,从而出发 input 事件
Vanessa137e5039f9f0
diff --git a/app/src/protyle/wysiwyg/input.ts b/app/src/protyle/wysiwyg/input.tsindex 7b8c112012..a2d27a8776 100644--- a/app/src/protyle/wysiwyg/input.ts+++ b/app/src/protyle/wysiwyg/input.ts@@ -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);};