ss-kindeditor

1.0.2 • Public • Published

ss-kindeditor

a kindeditor component(kindeditor的vue封装)

Build Setup

安装

npm install ss-kindeditor --save

使用

main.js

import SSKindEditor from 'ss-kindeditor'
Vue.use(SSKindEditor)

使用时

<template>
  <div class="hello">
    <editor id="editor_id" height="500px" width="700px" :content="editorText" uploadJson="asp.net/upload_json.ashx"
        pluginsPath="/static/kindeditor/plugins/"
        :allowFileManager="false"
        :loadStyleMode="false"
        @on-content-change="onContentChange"></editor>
  </div>
</template>
<script>
export default {
  name: 'hello',
  data () {
    return {
       editorText: ''
    }
  }, 
  methods: {
    onContentChange (data) {
      this.editorText = data.value // data.value;data.id;
    }
  }
}
</script>

所有配置项: http://kindeditor.net/docs/option.html#filemanagerjson

Package Sidebar

Install

npm i ss-kindeditor

Weekly Downloads

3

Version

1.0.2

License

MIT

Last publish

Collaborators

  • xiaobaozi