Markdown编辑器vditor

103 阅读1分钟

Markdown编辑器

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>

更多vue相关插件及后台管理模板可访问vue admin reference,代码详情请访问github