function _wysiwyg_ckeditor_group in Wysiwyg 6.2
Same name and namespace in other branches
- 7.2 editors/ckeditor.inc \_wysiwyg_ckeditor_group()
Define grouping for ckEditor buttons.
File
- editors/
ckeditor.inc, line 803 - Editor integration functions for CKEditor.
Code
function _wysiwyg_ckeditor_group($button) {
switch ($button) {
case 'Source':
$group = 'document';
break;
case 'Cut':
case 'Copy':
case 'Paste':
case 'PasteText':
case 'PasteFromWord':
case 'Undo':
case 'Redo':
$group = 'clipboard';
break;
case 'Find':
case 'Replace':
case 'SelectAll':
case 'SpellChecker':
case 'Scayt':
$group = 'editing';
break;
case 'Bold':
case 'Italic':
case 'Underline':
case 'Strike':
case 'Subscript':
case 'Superscript':
$group = 'basicstyles';
break;
case 'RemoveFormat':
case 'CopyFormatting':
$group = 'cleanup';
break;
case 'NumberedList':
case 'BulletedList':
case 'Outdent':
case 'Indent':
case 'Blockquote':
case 'CreateDiv':
case 'JustifyLeft':
case 'JustifyCenter':
case 'JustifyRight':
case 'JustifyBlock':
case 'BidiLtr':
case 'BidiRtl':
$group = 'paragraph';
break;
case 'Link':
case 'Unlink':
case 'Anchor':
$group = 'links';
break;
case 'Image':
case 'Flash':
case 'Table':
case 'HorizontalRule':
case 'Smiley':
case 'SpecialChar':
case 'Iframe':
case 'Templates':
$group = 'insert';
break;
case 'Styles':
case 'Format':
case 'Font':
case 'FontSize':
$group = 'styles';
break;
case 'TextColor':
case 'BGColor':
$group = 'colors';
break;
case 'Maximize':
case 'ShowBlocks':
case 'About':
$group = 'tools';
break;
default:
$group = 'other';
}
return $group;
}