diff --git a/app/src/protyle/wysiwyg/input.ts b/app/src/protyle/wysiwyg/input.ts index 766267eed..41e7788bb 100644 --- a/app/src/protyle/wysiwyg/input.ts +++ b/app/src/protyle/wysiwyg/input.ts @@ -157,7 +157,13 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range: } }); if (mathSize > 0 && mathSize < html.split(' { + if (item.dataset.content.indexOf("") > -1) { + item.setAttribute("data-content", item.dataset.content.replace("", "")); + protyle.toolbar.showRender(protyle, item); + return true; + } + }); } Array.from(tempElement.content.children).forEach((item, index) => { const tempId = item.getAttribute("data-node-id");