ct-adc-ueditor
v1.1.2
Published
A Vuejs Component based on UEditor
Downloads
4
Readme
ct-adc-ueditor
基于百度 Ueditor 的 VueJS 2.0 组件
快速开始
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
查看效果
View demo.
目录结构
核心代码目录如下:
ct-adc-ueditor/
...
└── src/
└── component
└── UEditor.vue
依赖配置
具体请参考百度UEditor文档
API
reset
:重置编辑器,并清空内容destroy
:销毁编辑器setContent
:设置内容(sContent | String)getContent
:获取富文本内容
当内容发生改变的时候,会
emit
一个change
事件,并且会传递当前的内容最为参数
Change Log
View Log
Attention
和 Bootstrap 混合使用,会对原有样式造成影响,该影响主要来源于:
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
请根据实际业务需求,修正样式