html - How to change the default buttons of CKEditor -


sorry if seems simple, not find answer of problem searching google.

i want change default layout of ckeditor. have several textareas in form should converted ckeditor, documentation has said, changed class of them to:

class="ckeditor" 

but when loading form, textareas open full buttons in them while want filter of buttons. 1 obvious solution individually change layout of each textarea. but, know way in 1 step (like changing default layout, if exists @ all)?

thank reading

here found answer here

// default value.

config.toolbar = [     { name: 'document',    items : [ 'source','-','save','newpage','docprops','preview','print','-','templates' ] },     { name: 'clipboard',   items : [ 'cut','copy','paste','pastetext','pastefromword','-','undo','redo' ] },     { name: 'editing',     items : [ 'find','replace','-','selectall','-','spellchecker', 'scayt' ] },     { name: 'forms',       items : [ 'form', 'checkbox', 'radio', 'textfield', 'textarea', 'select', 'button', 'imagebutton', 'hiddenfield' ] },     '/',     { name: 'basicstyles', items : [ 'bold','italic','underline','strike','subscript','superscript','-','removeformat' ] },     { name: 'paragraph',   items : [ 'numberedlist','bulletedlist','-','outdent','indent','-','blockquote','creatediv','-','justifyleft','justifycenter','justifyright','justifyblock','-','bidiltr','bidirtl' ] },     { name: 'links',       items : [ 'link','unlink','anchor' ] },     { name: 'insert',      items : [ 'image','flash','table','horizontalrule','smiley','specialchar','pagebreak' ] },     '/',     { name: 'styles',      items : [ 'styles','format','font','fontsize' ] },     { name: 'colors',      items : [ 'textcolor','bgcolor' ] },     { name: 'tools',       items : [ 'maximize', 'showblocks','-','about' ] } ]; 

just delete items don't want in textarea

other default values set via config


Comments