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