[英]CKEditor set width
我正在使用CKEditor 4進行內聯編輯。 我想為顯示的CKEditor工具欄設置自定義高度。 我環顧四周,找到了解決方案
config.height = 300;
config.width = 550;
我在config.js文件中寫了以上兩行。 但可悲的是,它對我不起作用。
有任何想法嗎? 還是內聯編輯不支持自定義高度?
編輯:
我也在我的js中嘗試過
editor.resize( 900, 300 );
但沒有運氣
只需使用Zee在注釋區域中建議的換行符“ /”即可。
例如:
config.toolbarGroups = [
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'basicstyles', 'cleanup'] },
'/',
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align' ] },
{ name: 'links' },
...
]
換行符會將按鈕分為兩行。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.