This commit is contained in:
Vanessa 2023-08-16 23:04:48 +08:00
parent 492eede64f
commit 063b84748d

View file

@ -157,7 +157,13 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:
}
});
if (mathSize > 0 && mathSize < html.split('<span data-type="inline-math" data-subtype="math"').length - 1) {
// protyle.toolbar.showRender(protyle, mathElement);
Array.from(blockElement.querySelectorAll('[data-type="inline-math"]')).find((item: HTMLElement) => {
if (item.dataset.content.indexOf("<wbr>") > -1) {
item.setAttribute("data-content", item.dataset.content.replace("<wbr>", ""));
protyle.toolbar.showRender(protyle, item);
return true;
}
});
}
Array.from(tempElement.content.children).forEach((item, index) => {
const tempId = item.getAttribute("data-node-id");