javascript - Is it possible to dynamically show/hide frequently used buttons with full CKEditor.inline toolbar using maybe a "More” button? -
ckeditor provides ability display inline editor dynamically on click of textarea , set of toolbar buttons can configured show/hide possible show used buttons , hide rest of buttons "more” button/option because want provide full ckeditor toolbar of toolbar buttons used , hide simplify user interface if possible
in other words, want keep buttons available in full ckeditor hide under may option called “more”
config.toolbar = [ { name: 'document', groups: [ 'mode', 'document', 'doctools' ], items: [ 'source', '-', 'save', 'newpage', 'preview', 'print', '-', 'templates' ] }, { name: 'clipboard', groups: [ 'clipboard', 'undo' ], items: [ 'cut', 'copy', 'paste', 'pastetext', 'pastefromword', '-', 'undo', 'redo', 'pbckcode' ] }, { name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ], items: [ 'find', 'replace', '-', 'selectall', '-', 'scayt' ] }, { name: 'forms', items: [ 'form', 'checkbox', 'radio', 'textfield', 'textarea', 'select', 'button', 'imagebutton', 'hiddenfield' ] }, '/', { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ], items: [ 'bold', 'italic', 'underline', 'strike', 'subscript', 'superscript', '-', 'removeformat' ] }, { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ], items: [ 'numberedlist', 'bulletedlist', '-', 'outdent', 'indent', '-', 'blockquote', 'creatediv', '-', 'justifyleft', 'justifycenter', 'justifyright', 'justifyblock', '-', 'bidiltr', 'bidirtl', 'language' ] }, { name: 'links', items: [ 'link', 'unlink', 'anchor' ] }, { name: 'insert', items: [ 'image', 'flash', 'table', 'horizontalrule', 'smiley', 'specialchar', 'pagebreak', 'iframe' ] }, '/', { name: 'styles', items: [ 'styles', 'format', 'font', 'fontsize' ] }, { name: 'colors', items: [ 'textcolor', 'bgcolor' ] }, { name: 'tools', items: [ 'maximize', 'showblocks' ] }, { name: 'others', items: [ 'youtube', '-' ] }, //{ name: 'about', items: [ 'about' ] } { name: 'misc', items: [ 'mathjax', 'mathedit', 'eqneditor', 'equation', 'youtube', 'lineutils', 'widget' ] } ];
thanks
Comments
Post a Comment