source: trunk/admin/inc/ckeditor/_source/plugins/uicolor/plugin.js@ 239

Last change on this file since 239 was 239, checked in by luc, 9 years ago

Admin: correzione visulaizzazione immissione dati spoglio per Chrome e Safari - Aggiornamento dell'editor da FCKeditor a CKeditor , accessibili anche a Chrome e Safari.

  • Property svn:executable set to *
File size: 976 bytes
Line 
1/*
2Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.html or http://ckeditor.com/license
4*/
5
6CKEDITOR.plugins.add( 'uicolor',
7{
8 requires : [ 'dialog' ],
9 lang : [ 'en', 'he' ],
10
11 init : function( editor )
12 {
13 if ( CKEDITOR.env.ie6Compat )
14 return;
15
16 editor.addCommand( 'uicolor', new CKEDITOR.dialogCommand( 'uicolor' ) );
17 editor.ui.addButton( 'UIColor',
18 {
19 label : editor.lang.uicolor.title,
20 command : 'uicolor',
21 icon : this.path + 'uicolor.gif'
22 });
23 CKEDITOR.dialog.add( 'uicolor', this.path + 'dialogs/uicolor.js' );
24
25 // Load YUI js files.
26 CKEDITOR.scriptLoader.load( CKEDITOR.getUrl(
27 '_source/' + // @Packager.RemoveLine
28 'plugins/uicolor/yui/yui.js'
29 ));
30
31 // Load YUI css files.
32 editor.element.getDocument().appendStyleSheet( CKEDITOR.getUrl(
33 '_source/' + // @Packager.RemoveLine
34 'plugins/uicolor/yui/assets/yui.css'
35 ));
36 }
37} );
Note: See TracBrowser for help on using the repository browser.