ueditor問題總結(jié)

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標簽自動轉(zhuǎn)換為p標簽
               wordCount: false,               // 禁止字數(shù)統(tǒng)計
               elementPathEnabled: false,      // 關(guān)閉元素路徑
               retainOnlyLabelPasted: true,    // 粘貼只保留標簽,去除標簽所有屬性
               pasteplain: true,               // 粘貼內(nèi)容進行格式化
               autoHeightEnabled: false,       // 是否自動長高
               serverUrl: _this.$store.state.url,  // 上傳圖片配置
               imageUrlPrefix: _this.$store.state.url,
               imageManagerUrlPrefix: _this.$store.state.url,
               iframeCssUrl: '/static/UE/themes/iframe.css'    // 自定義樣式
           });
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容