文字编辑器插件
import makedownplugin from '@/plugin/makedown'
Vue.use(makedownplugin)
全局注册了以后,可以在任何一个页面上引用组件
<markdown @getData="getdata" width="100%" height="300px">
@getData有两个参数,传递了编辑器的内容,和选中文本。得到了选中文本,就可以对插件进行拓展。
/src/doc 是插件使用例子
| Name | Name | Last commit date | ||
|---|---|---|---|---|