From: Benoît Pin Date: Tue, 22 Jul 2014 16:30:46 +0000 (+0200) Subject: Personnalisation de la liste des styles par fichier externe. X-Git-Url: https://scm.cri.ensmp.fr/git/ckeditor.git/commitdiff_plain/e26345ed9b0afe560d7f06d8cbbc9698eba433d2?ds=inline;hp=92a66ef2fd9fba2603612bf78677ed5cf1a7be6c Personnalisation de la liste des styles par fichier externe. --- diff --git a/skins/ckeditor/config.js b/skins/ckeditor/config.js index f29caf2..dea13f2 100644 --- a/skins/ckeditor/config.js +++ b/skins/ckeditor/config.js @@ -11,7 +11,7 @@ CKEDITOR.editorConfig = function( config ) // toolbar config.toolbar = [ - { name: 'styles', items : [ /*'Styles', */'Format', 'Font', 'FontSize' ] }, + { name: 'styles', items : [ 'Styles','Format', 'Font', 'FontSize' ] }, { name: 'colors', items : [ 'TextColor', 'BGColor' ] }, { name: 'document', items : [ 'Maximize', 'ShowBlocks', 'Source'] }, { name: 'editing', items : [ 'Find','Replace', '-', 'SelectAll'] }, @@ -37,4 +37,6 @@ CKEDITOR.editorConfig = function( config ) config.attachmentBrowserConnectorUrl = CKEDITOR.basePath + 'plugins/plinn_image/connectors/plinn/connector'; config.imageMaxDefaultDimension = 500 ; // image inserted will be cropped at this size. config.extraPlugins = 'plinn_image,codemirror'; + + config.stylesSet = 'plinn_styles:' + CKEDITOR.basePath + 'plinn_ckeditor_styles.js'; }; \ No newline at end of file