Vanessa 2023-11-13 00:22:07 +08:00
parent b601b8044b
commit 359487c09c

View file

@ -47,7 +47,7 @@ export const mathRender = (element: Element, cdn = Constants.PROTYLE_CDN, maxWid
if (mathElement.tagName === "DIV") {
renderElement.firstElementChild.setAttribute("contenteditable", "false");
if (renderElement.childElementCount < 2) {
renderElement.insertAdjacentHTML("beforeend", `<span style="position: absolute">${Constants.ZWSP}</span>`);
renderElement.insertAdjacentHTML("beforeend", `<span contenteditable="false" style="position: absolute">${Constants.ZWSP}</span>`);
}
// https://github.com/siyuan-note/siyuan/issues/3541
const baseElements = renderElement.querySelectorAll(".base");