提交
This commit is contained in:
@@ -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');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user