ss-kindeditor
v1.0.2
Published
a kindeditor component
Downloads
3
Maintainers
Readme
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