ueditor问题总结

1、再次进入页面,编辑框不显示
UE.delEditor('editor');
this.ue = window.UE.getEditor('editor');

2、屏幕自适应配置
this.editor = UE.getEditor(this.id, {
             toolbars: [
                   ['charts','fontsize','lineheight','fullscreen','source','formatmatch','removeformat','|','italic','bold','underline','blockquote','forecolor','backcolor','link','searchreplace','undo','redo',
                   'strikethrough','insertorderedlist','insertunorderedlist','insertimage','template','inserttable']
               ],
               initialFrameHeight: _this.eHeight,//编辑框自适应高度,
               initialFrameWidth: '100%',      // 屏幕自适应宽度
               autoFloatEnabled: true,
               allowDivTransToP: false,        // 阻止div标签自动转换为p标签
               wordCount: false,               // 禁止字数统计
               elementPathEnabled: false,      // 关闭元素路径
               retainOnlyLabelPasted: true,    // 粘贴只保留标签,去除标签所有属性
               pasteplain: true,               // 粘贴内容进行格式化
               autoHeightEnabled: false,       // 是否自动长高
               serverUrl: _this.$store.state.url,  // 上传图片配置
               imageUrlPrefix: _this.$store.state.url,
               imageManagerUrlPrefix: _this.$store.state.url,
               iframeCssUrl: '/static/UE/themes/iframe.css'    // 自定义样式
           });

你可能感兴趣的:(ueditor问题总结)