From cabf3de4ee3cfb325e91a5e043231c2523e0169f Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Thu, 28 Sep 2017 03:16:07 +0200 Subject: [PATCH] edit: drop rare options from ckeditor toolbar - 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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/edit.js b/edit.js index 3fd8230..120b68f 100644 --- 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; -- 2.30.0