(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
There are two ways I have seen:
1) Using the removePlugins option and just remove the toolbar:
CKEDITOR.inline( 'textarea', {
removePlugins: 'toolbar',
allowedContent: 'p h1 h2 strong em; a[!href]; img[!src,width,height];'
} );
2) Using CSS - Not the standard approach: (little tricky)
Just make css to display:none the toolbar, like
.cke_inner {
display: none;
}
In version 4.13, you can hide the entire top bar containing the toolbar:
.cke_inner .cke_top {
display: none;
}
or hide only the toolbar but keep a strip of color at the top:
.cke_inner .cke_top .cke_toolbox {
display: none;
}
Hope it will help someone.