Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

kindeditor-vue

4794967718MIT1.0.1

A Vue.js project

vue, kindeditor, kindeditor-vue, vue-kindeditor

readme

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>