source: sandbox/2.3-MailArchiver/filemanager/tp/ckeditor/_source/plugins/uicolor/plugin.js @ 6779

Revision 6779, 970 bytes checked in by rafaelraymundo, 12 years ago (diff)

Ticket #2946 - Liberado Expresso(branch 2.3) integrado ao MailArchiver?.

Line 
1/*
2Copyright (c) 2003-2009, 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' ],
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.