wangeditor相關設置文本框高度height,設置是否可編輯

參考代碼

在這裏插入圖片描述

在這裏插入圖片描述 

官方文檔

設置是否可編輯

寫法

import E from 'wangeditor'
this.editor = new E(this.$refs.editor);
this.editor.customConfig.onchange = (html) => {
this.editorContent = html;
};
this.editor.create();
this.editor.$textElem.attr('contenteditable', false);	//設置不可編輯
this.editor.$textContainerElem.css('height', '100px !important'); //設置高度

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章