X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2Fpackagist%2Fpiedsjaloux-ckeditor-component.git;a=blobdiff_plain;f=sources%2Fskins%2Fmoono%2Fskin.js;h=420b22ecdaba45e029bf19d1e047a2f89505439b;hp=6dbdaa933348716bf2198fbd55c942c59eb0b51c;hb=refs%2Ftags%2F4.7.3;hpb=1096cdefb1c9a3f3c4ca6807e272da6c92e5ed9c diff --git a/sources/skins/moono/skin.js b/sources/skins/moono/skin.js index 6dbdaa9..420b22e 100644 --- a/sources/skins/moono/skin.js +++ b/sources/skins/moono/skin.js @@ -1,5 +1,5 @@ /** - * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ @@ -276,9 +276,6 @@ CKEDITOR.skin.chameleon = ( function() { // ---------------------------------------------------------- // (http://docs.cksource.com/CKEditor_4.x/Skin_SDK/Icons) // -// Note: As "moono" is the default CKEditor skin, it provides no custom icons, -// thus this code is commented out. -// // This code is here just to make the skin work fully when using its "source" // version. Without this, the skin will still work, but its icons will not be // used (again, on source version only). @@ -291,29 +288,29 @@ CKEDITOR.skin.chameleon = ( function() { // If a required icon is not available here, the plugin defined icon will be // used instead. This means that a skin is not required to provide all icons. // Actually, it is not required to provide icons at all. -// -// (function() { -// // The available icons. This list must match the file names (without -// // extension) available inside the "icons" folder. -// var icons = ( 'about,anchor-rtl,anchor,bgcolor,bidiltr,bidirtl,blockquote,' + -// 'bold,bulletedlist-rtl,bulletedlist,button,checkbox,copy-rtl,copy,' + -// 'creatediv,cut-rtl,cut,docprops-rtl,docprops,find-rtl,find,flash,form,' + -// 'hiddenfield,horizontalrule,icons,iframe,image,imagebutton,indent-rtl,' + -// 'indent,italic,justifyblock,justifycenter,justifyleft,justifyright,' + -// 'link,maximize,newpage-rtl,newpage,numberedlist-rtl,numberedlist,' + -// 'outdent-rtl,outdent,pagebreak-rtl,pagebreak,paste-rtl,paste,' + -// 'pastefromword-rtl,pastefromword,pastetext-rtl,pastetext,preview-rtl,' + -// 'preview,print,radio,redo-rtl,redo,removeformat,replace,save,scayt,' + -// 'select-rtl,select,selectall,showblocks-rtl,showblocks,smiley,' + -// 'source-rtl,source,specialchar,spellchecker,strike,subscript,' + -// 'superscript,table,templates-rtl,templates,textarea-rtl,textarea,' + -// 'textcolor,textfield-rtl,textfield,uicolor,underline,undo-rtl,undo,unlink' ).split( ',' ); -// -// var iconsFolder = CKEDITOR.getUrl( CKEDITOR.skin.path() + 'icons/' + ( CKEDITOR.env.hidpi ? 'hidpi/' : '' ) ); -// -// for ( var i = 0; i < icons.length; i++ ) { -// CKEDITOR.skin.addIcon( icons[ i ], iconsFolder + icons[ i ] + '.png' ); -// } -// })(); + +( function() { + // The available icons. This list must match the file names (without + // extension) available inside the "icons" folder. + var icons = ( 'about,anchor-rtl,anchor,bgcolor,bidiltr,bidirtl,blockquote,' + + 'bold,bulletedlist-rtl,bulletedlist,button,checkbox,copy-rtl,copy,copyformatting,' + + 'creatediv,cut-rtl,cut,docprops-rtl,docprops,find-rtl,find,flash,form,' + + 'hiddenfield,horizontalrule,icons,iframe,image,imagebutton,indent-rtl,' + + 'indent,italic,justifyblock,justifycenter,justifyleft,justifyright,' + + 'link,maximize,newpage-rtl,newpage,numberedlist-rtl,numberedlist,' + + 'outdent-rtl,outdent,pagebreak-rtl,pagebreak,paste-rtl,paste,' + + 'pastefromword-rtl,pastefromword,pastetext-rtl,pastetext,preview-rtl,' + + 'preview,print,radio,redo-rtl,redo,removeformat,replace,save,scayt,' + + 'select-rtl,select,selectall,showblocks-rtl,showblocks,smiley,' + + 'source-rtl,source,specialchar,spellchecker,strike,subscript,' + + 'superscript,table,templates-rtl,templates,textarea-rtl,textarea,' + + 'textcolor,textfield-rtl,textfield,uicolor,underline,undo-rtl,undo,unlink' ).split( ',' ); + + var iconsFolder = CKEDITOR.getUrl( CKEDITOR.skin.path() + 'icons/' + ( CKEDITOR.env.hidpi ? 'hidpi/' : '' ) ); + + for ( var i = 0; i < icons.length; i++ ) { + CKEDITOR.skin.addIcon( icons[ i ], iconsFolder + icons[ i ] + '.png' ); + } +} )(); // %REMOVE_END%