主题
文档
github地址
安装
npm install vditor --save
使用
import Vditor from 'vditor' import 'vditor/dist/index.css' onMounted(() => { const vditor = new Vditor('md-editor', { minHeight: 400, theme: 'classic', icon: 'material', cache: { enable: false } }) })
<div id="md-editor"></div>