[英]CKEditor toolbar hide/show
toolbarCanCollapse
在CKEDITOR.inline
中不起作用,請使用CKEDITOR.replace
。
此外, toolbarCanCollapse
不會自動隱藏工具欄,它只是工具欄右下角的一個按鈕,有助於切換工具欄(隱藏/顯示),默認情況下顯示工具欄並禁用toolbarCanCollapse
。
嘗試這個:
CKEDITOR.replace('a', {
toolbarCanCollapse: true, //Button to toggle toolbar (show/hide)
toolbarStartupExpanded: false, //This will hide toolbar by default.
height: "60px" //I just gave the height if you want textarea to be small, just like it is in CKEDITOR.inline.
});
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.