Open kagol opened 1 week ago
latest
通过 setContents 方法,无法初始化渲染公式。
const editor = new FluentEditor('#editor', { "theme": "snow", "modules": { "toolbar": ["formula"], "mathlive": true } }) // 以下 delta 内容是通过 getContents 获取到的 const delta = { "ops": [ { "insert": { "mathlive": { "value": "\\sum_{i=1}^{n} i^2", "mode": "dialog" } } }, { "insert": "\n" } ] } editor.setContents(delta)
如上
No response
Wiki
Version
latest
Link to minimal reproduction
通过 setContents 方法,无法初始化渲染公式。
Step to reproduce
如上
What is expected
No response
What is actually happening
No response
What is your project name
Wiki
Any additional comments (optional)
No response