2 Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
\r
3 For licensing, see LICENSE.html or http://ckeditor.com/license
\r
6 CKEDITOR.plugins.add( 'uicolor',
\r
8 requires : [ 'dialog' ],
\r
9 lang : [ 'en', 'he' ],
\r
11 init : function( editor )
\r
13 if ( CKEDITOR.env.ie6Compat )
\r
16 editor.addCommand( 'uicolor', new CKEDITOR.dialogCommand( 'uicolor' ) );
\r
17 editor.ui.addButton( 'UIColor',
\r
19 label : editor.lang.uicolor.title,
\r
20 command : 'uicolor',
\r
21 icon : this.path + 'uicolor.gif'
\r
23 CKEDITOR.dialog.add( 'uicolor', this.path + 'dialogs/uicolor.js' );
\r
25 // Load YUI js files.
\r
26 CKEDITOR.scriptLoader.load( CKEDITOR.getUrl(
\r
27 '_source/' + // @Packager.RemoveLine
\r
28 'plugins/uicolor/yui/yui.js'
\r
31 // Load YUI css files.
\r
32 editor.element.getDocument().appendStyleSheet( CKEDITOR.getUrl(
\r
33 '_source/' + // @Packager.RemoveLine
\r
34 'plugins/uicolor/yui/assets/yui.css'
\r