hinesboy / mavonEditor

mavonEditor - A markdown editor based on Vue that supports a variety of personalized features
http://www.mavoneditor.com/
MIT License
6.45k stars 918 forks source link

希望可以开放工具栏接口,让开发者自行添加功能按钮 #434

Closed moecasts closed 3 years ago

moecasts commented 5 years ago

希望可以开放工具栏接口,让开发者自行添加功能按钮。

chunshand commented 5 years ago

我觉得也是

moecasts commented 5 years ago

@zcshan 已找到解決方法。

<mavon-editor>
  <template slot="left-toolbar-before">
    左工具栏前
  </template>
  <template slot="left-toolbar-after">
    左工具栏后
  </template>
  <template slot="right-toolbar-before">
    右工具栏前
  </template>
  <template slot="right-toolbar-after">
    右工具栏后
  </template>
</mavon-editor>
chunshand commented 5 years ago

谢谢