This commit is contained in:
2025-03-26 15:05:27 +08:00
parent 3ce099e454
commit 9fb503757a
10 changed files with 401 additions and 181 deletions

View File

@@ -1964,7 +1964,7 @@ export default {
const uid = 'wmath-' + Math.random().toString(36).substr(2, 9);
// 3. 创建一个 <wmath> 标签并插入到光标处
const wmathHtml = `<wmath contenteditable="false" data-id="${uid}" data-latex=""><Info >Insert formula here</Info></wmath>`;
const wmathHtml = `<wmath contenteditable="false" data-id="${uid}" data-latex=""></wmath>`;
ed.insertContent(wmathHtml); // 在光标位置插入 wmath 标签
// 4. 打开公式编辑器窗口,并传递光标位置、编辑器 ID 和 wmathId
@@ -1973,7 +1973,7 @@ export default {
// editorId:editorId,
// wmathId:uid,
// });
window.open(url, '_blank', 'width=600,height=460,scrollbars=no,resizable=no');
window.open(url, '_blank', 'width=1000,height=800,scrollbars=no,resizable=no');
}
});