Can I use CKEditor without a toolbar?

后端 未结 8 1523
迷失自我
迷失自我 2020-12-14 07:35

(Possible duplicate: CKEditor - No toolbars)

I\'d like to create a CKEditor instance without a toolbar. I tried defining an empty toolbar to use in the instance\'s c

8条回答
  •  孤城傲影
    2020-12-14 07:51

    I have added new function into my project for hide/show of the toolbar.

    function onClickToolbarButton() {
        var bar = document.getElementById("cke_1_top");
        if(bar.style.display == "none"){
            bar.style.display = "block";
        }else{
            bar.style.display = "none";
        }
    
        //resize web page
        //onresize();
    }

    Call this function every time, if you want hide/show toolbar.

提交回复
热议问题