1.0.1 • Published 5 years ago

kindeditor-vue v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

kindeditor-vue

对kindeditor富文本编辑器进行封装

安装

#npm 安装
npm i kindeditor-vue --save -D

使用方法

demo:

    <Editor @getHtml="getHtml" >
      <button id="getHtml"  slot="getHtml">获取html</button>
      <button slot="clear">清空</button>
    </Editor>

params:

事件名content
getHtml获取html代码返回获取值x: getHtml(x)
isEmpty判断是不是空boolean
getText获取文本返回获取值x: getText(x)
clear清空无需调用,启用button即可

图片上传

  #url 图片上传地址
  <Editor :url="'http://localhost:8080'"></Editor>