JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-4.3.1_full
[ckeditor.git] / samples / plugins / toolbar / toolbar.html
index 8ea1558..8d231d9 100644 (file)
@@ -101,7 +101,7 @@ CKEDITOR.replace( <em>'textarea_id'</em>, {
        CKEDITOR.on( 'instanceReady', function( evt ) {\r
                var editor = evt.editor,\r
                        editorCurrent = editor.name == 'editorCurrent',\r
-                       defaultToolbar = !( editor.config.toolbar || editor.config.toolbarGroups ),\r
+                       defaultToolbar = !( editor.config.toolbar || editor.config.toolbarGroups || editor.config.removeButtons ),\r
                        pre = CKEDITOR.document.getById( editor.name + 'Cfg' ),\r
                        output = '';\r
 \r
@@ -141,6 +141,7 @@ CKEDITOR.replace( <em>'textarea_id'</em>, {
                // Reset toolbar settings, so full toolbar will be generated automatically.\r
                toolbar: null,\r
                toolbarGroups: null,\r
+               removeButtons: null,\r
                height: 100\r
        } );\r
 \r