edit: drop rare options from ckeditor toolbar
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 28 Sep 2017 01:16:07 +0000 (03:16 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Thu, 28 Sep 2017 02:03:16 +0000 (04:03 +0200)
- ShowBlocks not really interesting for simple structures; would be useful
  for floating sections but these aren't supported.
- Anchor once used for article links, replaced by proper pages.
- RemoveFormat now done automatically on paste.
- Sourcedialog reordered at end since it's a last resort.

edit.js

diff --git a/edit.js b/edit.js
index 3fd8230e4a78783ac3fb50d3c1b8feab6b63b75f..120b68f98e6ad3d9570a988d45c3ead6f18b5be3 100644 (file)
--- a/edit.js
+++ b/edit.js
@@ -56,11 +56,11 @@ CKEDITOR.on('instanceCreated', function (event) {
                config.forcePasteAsPlainText = true;
                config.contentsCss = document.styleSheets[0].href;
                config.toolbar = [
-                       ['Inlinesave', '-', 'ShowBlocks', 'Sourcedialog', '-', 'Undo', 'Redo'],
-                       ['Format'],
-                       ['BulletedList', 'NumberedList', '-', 'Blockquote'],
-                       ['Bold', 'Italic', 'Underline', 'Strike', 'RemoveFormat', '-', 'Anchor', 'Link'],
-                       ['HorizontalRule', 'Table', 'Image', 'CreatePlaceholder'],
+                       ['Inlinesave', '-', 'Undo', 'Redo'],
+                       ['Format', 'BulletedList', 'NumberedList', 'Blockquote'],
+                       ['Bold', 'Italic', 'Link', '-', 'Underline', 'Strike'],
+                       ['HorizontalRule', 'Table', 'Image'],
+                       ['CreatePlaceholder', 'Sourcedialog'],
                ];
                config.toolbarCanCollapse = true;
                config.floatSpacePreferRight = true;