/**
* 富文本框指令:<textarea v-ab-editor:[editorconfig]="data.objPages.PageContent" height="100"></textarea>
* v-ab-editor:数据表达式 editorconfig:编辑器配置 height:文本框高度
* eg:
* editorconfig = {
initialFrameHeight: window.innerHeight - 260,
enableAutoSave: false,
autoHeightEnabled: false,
allHtmlEnabled: true,
focus: true,
iframeCssUrl: "../../assets/js/plugins/ueditor/themes/pcframe.css",
},
*/
Vue.directive("abEditor", {
inserted: function (el, binding, vnode) {
window.editor = new UE.ui.Editor(binding.arg || {
focus: true
封装vue自定义指令v-ab-editor 百度富文本编辑器
最新推荐文章于 2024-06-02 09:34:13 发布