edit: inline styling buttons before block inserts
authorMischa POSLAWSKY <perl@shiar.org>
Wed, 11 Jul 2018 19:45:26 +0000 (21:45 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Sat, 14 Jul 2018 11:47:56 +0000 (13:47 +0200)
Match toolbars of common word processors.

edit.js

diff --git a/edit.js b/edit.js
index 57271c731e529600c6c3375cd0e52f11931c00d8..62badc986cc6eeac987d60fc4c1453f9b27cf847 100644 (file)
--- a/edit.js
+++ b/edit.js
@@ -92,10 +92,11 @@ CKEDITOR.on('instanceCreated', function (event) {
                config.contentsCss = document.styleSheets[0].href;
                config.toolbar = [
                        ['Inlinesave', '-', 'Undo', 'Redo'],
-                       ['Format', 'BulletedList', 'NumberedList', 'Blockquote'],
-                       ['CreateDiv', 'Table'],
-                       ['HorizontalRule', 'CreatePlaceholder', 'Image'],
+                       ['Format'],
                        ['Bold', 'Italic', 'Link'],
+                       ['BulletedList', 'NumberedList', 'Blockquote'],
+                       ['Table', 'CreateDiv'],
+                       ['Image', 'HorizontalRule', 'CreatePlaceholder'],
 //                     ['Sourcedialog'],
                ];
                config.toolbarCanCollapse = true;