2011-06-03

CKEditor 3.6 Parametros base para el archivo config.js

Ajustes básico para mi gusto para el CKEditor Ver. 3.6

CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
config.protectedSource.push(/<\?[\s\S]*?\?>/g); // PHP Code // Protect PHP code tags (<?...?>) so CKEditor
config.toolbarCanCollapse = false;
config.resize_enabled = false;
config.removePlugins = 'elementspath';
config.language = 'es';
config.toolbar_Full =
[
{ name: 'document', items : [ 'Source','-','Save','NewPage','DocProps','Preview','Print','-','Templates' ] },
{ name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
{ name: 'editing', items : [ 'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt' ] },
{ name: 'forms', items : [ 'Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField' ] },
'/',
{ name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] },
{ name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ] },
{ name: 'links', items : [ 'Link','Unlink','Anchor' ] },
{ name: 'insert', items : [ 'Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe' ] },
'/',
{ name: 'styles', items : [ 'Styles','Format','Font','FontSize' ] },
{ name: 'colors', items : [ 'TextColor','BGColor' ] },
{ name: 'tools', items : [ 'Maximize', 'ShowBlocks','-','About' ] }
];
config.toolbar = 'Full';
config.toolbar_Basic =
[
['Bold', 'Italic','Underline', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink','-','Undo','Redo']
];
config.toolbar = 'Basic';
// config.uiColor = '#AADC6E';
};
view raw config.js hosted with ❤ by GitHub

2 comentarios:

wek dijo...

Gracias! Me ha sido de gran utilidad.

Autor dijo...

Denada Wek,
Para eso estamos y si queres mantenerte al tanto suscribite a mi blog.
Saludos ;-)