root / drupal7 / sites / all / modules / ckeditor / includes / uicolor / plugin.js @ a6e869e4
1 | 85ad3d82 | Assos Assos | /** |
---|---|---|---|
2 | * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
|
||
3 | * For licensing, see LICENSE.html or http://ckeditor.com/license
|
||
4 | */
|
||
5 | |||
6 | CKEDITOR.plugins.add( 'uicolor', {
|
||
7 | requires: 'dialog', |
||
8 | lang: 'bg,cs,cy,da,de,el,en,eo,et,fa,fi,fr,he,hr,it,ku,mk,nb,nl,no,pl,tr,ug,uk,vi,zh-cn', // %REMOVE_LINE_CORE% |
||
9 | icons: 'uicolor', // %REMOVE_LINE_CORE% |
||
10 | init: function( editor ) { |
||
11 | if ( CKEDITOR.env.ie6Compat )
|
||
12 | return;
|
||
13 | |||
14 | editor.addCommand( 'uicolor', new CKEDITOR.dialogCommand( 'uicolor' ) ); |
||
15 | editor.ui.addButton && editor.ui.addButton( 'UIColor', {
|
||
16 | label: editor.lang.uicolor.title,
|
||
17 | command: 'uicolor', |
||
18 | toolbar: 'tools,1' |
||
19 | }); |
||
20 | CKEDITOR.dialog.add( 'uicolor', this.path + 'dialogs/uicolor.js' ); |
||
21 | |||
22 | // Load YUI js files.
|
||
23 | CKEDITOR.scriptLoader.load( CKEDITOR.getUrl( this.path + 'yui/yui.js' ) ); |
||
24 | |||
25 | // Load YUI css files.
|
||
26 | CKEDITOR.document.appendStyleSheet( CKEDITOR.getUrl( this.path + 'yui/assets/yui.css' ) ); |
||
27 | } |
||
28 | }); |