Closed (won't fix)
Project:
CKEditor 4 - WYSIWYG HTML editor
Version:
6.x-1.1
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Issue tags:
Reporter:
Created:
4 May 2010 at 07:47 UTC
Updated:
15 Sep 2010 at 14:48 UTC
Below you find extended configuration code for the 'ckeditor.config.js' in the CKEditor module folder. I have ported this from my old FCKEditor configuration file — it was tested on my Ubuntu development server with Drupal 6.16 in combination with 90 additional modules and it works fine.
The toolbar layout orientates 1:1/heavily on the original MS Office 2003 toolbar design!
config.toolbar_DrupalFull = [
['Maximize','DocProps','Source','-','Save','Preview','-','Templates'], // (ps) Additional 'Save','Preview','Templates' also seem to work in CKEditor! Only the former 'DocProps' are unclear to me (?)!
['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print','SpellChecker','Scayt'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Link','Unlink','Anchor','LinkToNode','LinkToMenu'],
'/',
['Style','Format','Font','FontSize'],
['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
'/',
['IMCE','MediaEmbed','Image','Flash','Table','Rule','SpecialChar','DrupalBreak','DrupalPageBreak'],
['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
['TextColor','BGColor','ShowBlocks']
];
Useful?
It might be useful to read http://drupal.org/node/735632#comment-2705538 [in this context] as well.
Comments
Comment #1
Blooniverse commented... it would obviously be optimal to be able to configure CKEditor's toolbars in WYSIWYG-API http://drupal.org/project/wysiwyg as well! Okay, right, it is possible to rearrange the icons via file 'ckeditor.inc' in 'sites/all/modules/wysiwyg/editors/' — only with the disadvantage that one seems to be unable to add toolbar breaks, usually done via '/'. Separators like the usual '-' also don't work in this file due to the array nature [in the configuration file]. Despite being a WYSIWYG issue, I've posted this additional comment here.
Comment #2
mephir commentedWe are working on own way to simply create a toolbar. Can you provide me some arguments why we should change DrupalFull toobar?
Comment #3
Blooniverse commentedSure: my toolbar configuration proposal seems [to me] more extensive and orientates on the original MS Office 2003 toolbar layout.
Comment #4
wwalc commentedLet's just leave this toolbar here for future references, instead of changing the default Full toolbar. Anyone willing to use it can just copy and paste it.
The true is that there are many possible variants and we just have to choose which one is more appropriate.
The default Full toolbar is more similar to the default CKEditor toolbar (and the one used in FCKeditor), that's why I think it's better to stick with it.