how to show ckeditor with basic toolbar

coure2011 picture coure2011 · Nov 21, 2012 · Viewed 71.5k times · Source

I am showing a ckeditor in my webpage using class="ckeditor" way. How can I configure my ckeditor to just show a basic toolbar. Here I found the sample page for showing a basic toolbar but not getting from documentation how to show that.

http://ckeditor.com/demo

check the Custom toolbar tab and see the first sample which has a very basic type of toolbar, how can I show it?

here is my code

<body>
    <textarea class="ckeditor" id="description" rows="5" cols="15"></textarea>
</body>

I want to show basic toolbar for all instances of ckeditor of my website.

Answer

Monzur picture Monzur · Apr 23, 2013

If you use Basic it will show all Toolbar, So use this

CKEDITOR.config.toolbar = [
   ['Styles','Format','Font','FontSize'],
   '/',
   ['Bold','Italic','Underline','StrikeThrough','-','Undo','Redo','-','Cut','Copy','Paste','Find','Replace','-','Outdent','Indent','-','Print'],
   '/',
   ['NumberedList','BulletedList','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
   ['Image','Table','-','Link','Flash','Smiley','TextColor','BGColor','Source']
] ;