ueditor封装的vue插件,基本满足我自己
npm install vue-ueditor-simple
npm i vue-ueditor-simple
`$3
`
1.需要下载一份完整的 UEditor 代码包放在项目根目录下的public文件夹下
2.如需传入配置,UEDITOR_HOME_URL 不能缺少
`$3
main.js
`
import VueUEeditorSimple from 'vue-ueditor-simple'Vue.use(VueUEditor)
`$3
$global.API为配置地址简单使用
`
`完整版
`
`` 属性名 | 类型 | 说明
---- | ----- | ------
value | String | 富文本内容
config | Object | 编辑器配置参数(ueditor配置)
editorId | String | 唯一id,默认'editor'
方法名 | 说明 | 回调参数
---- | ----- | ------
input | String | 富文本(content)
before-init | 初始化之前 | id及配置(editorId, config)
ready | 初始化UE加载完成 | editor实例(editor)
ueditor github 地址.