ss-kindeditor

a kindeditor component
850
Install
npm install ss-kindeditor
Latest Version:1.0.2
Vue:2
License:MIT
Last Updated:Nov 28, 2017
Links: npm
Maintainer: xiaobaozi

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

Related Packages

vue-kindeditor-pri

vue-kindeditor for Vue.js 2

773
vue

The progressive JavaScript framework for building modern web UI.

588,019,132 54,801
vue
@vueuse/shared
372,738,348 22,398
@vueuse/core

Collection of essential Vue Composition Utilities

367,188,523 22,398
@vitejs/plugin-vue

The official plugin for Vue SFC support in Vite.

333,357,380 686

Version History

Version Released Vue License
1.0.2 ^2.5.2 MIT
1.0.1 ^2.5.2 MIT
1.0.0 ^2.5.2 MIT