1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| CKEDITOR.dtd.$removeEmpty['i'] = false; // SPECIAL Font Awesome (ne pas supprimer les balises <i> vides)
CKEDITOR.editorConfig = function( config )
{
// -----------------------
config.basicEntities = false; // évite les inutiles
config.allowedContent = true; // accepte l'ajout d'attribut (class, style...) inline
// -----------------------
/* TOOLBAR PERSONNALISEE - SIMPLE (par exemple) */
config.toolbar = 'ToolbarSimple';
config.toolbar_ToolbarSimple =
[
{ name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike' ] },
{ name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock' ] },
{ name: 'links', items : [ 'Link','Unlink','Anchor' ] },
{ name: 'editing', items : [ '-','SpellChecker', 'Scayt' ] },
{ name: 'colors', items : [ 'TextColor','BGColor' ] },
{ name: 'styles', items : [ 'Format' ] },
{ name: 'clipboard', items : [ 'PasteText','PasteFromWord' ] },
{ name: 'insert', items : [ 'HorizontalRule' ] },
{ name: 'document', items : [ 'Source' ] }
];
// -----------------------
}; |
Partager