Revision 2862,
970 bytes
checked in by rodsouza, 14 years ago
(diff) |
Ticket #663 - Atualizando e centralizando o CKEditor (v. 3.2.1)
|
Line | |
---|
1 | /*
|
---|
2 | Copyright (c) 2003-2010, 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 | {
|
---|
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.