~justizin/zope.html/id_marker_lp_569541

« back to all changes in this revision

Viewing changes to src/zope/html/ckeditor/3.0/ckeditor/_source/plugins/uicolor/plugin.js

  • Committer: achapman
  • Date: 2009-09-04 12:44:32 UTC
  • Revision ID: svn-v4:62d5b8a3-27da-0310-9561-8e5933582275:zope.html/trunk:103534
Ckeditor 3.0 widget added. Keeping Fckeditor for backward compatability

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright (c) 2003-2009, 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
                        'plugins/uicolor/yui/yui.js'
 
28
                ));
 
29
 
 
30
                // Load YUI css files.
 
31
                editor.element.getDocument().appendStyleSheet( CKEDITOR.getUrl(
 
32
                                'plugins/uicolor/yui/assets/yui.css'
 
33
                ));
 
34
        }
 
35
} );