-
Vditor 一款浏览器端的 Markdown 编辑器,支持所见即所得(富文本)、即时渲染(类似 Typora)和分屏预览模式
2021-05-04 15:52自定义渲染器在 IR 编辑状态下支持吗?我试着在 options.after()内调用
vditor.lute.SetJSRenderers
接口,还是提示 Lute 未定义。相关代码:
after() { vditor.vditor.lute.SetJSRenderers({ renderers: { Md2VditorSVDOM: { renderHTML: (node, entering) => { if (entering) { console.log("entering"); return [``, Lute.WalkContinue]; } else { console.log("entering out "); return [``, Lute.WalkContinue]; } }, }, }, });
-
Vditor 一款浏览器端的 Markdown 编辑器,支持所见即所得(富文本)、即时渲染(类似 Typora)和分屏预览模式
2021-04-30 21:30请问在 React 中使用 Vditor,通过
import Vditor from "vditor"
的方式导入。在配置使用自定义渲染器时却报错:“Lute 未定义” 应该如何解决?