initial commit
[namibia] / public / scripts / ckeditor / _source / plugins / about / plugin.js
1 /*
2 Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
3 For licensing, see LICENSE.html or http://ckeditor.com/license
4 */
5
6 CKEDITOR.plugins.add( 'about',
7 {
8         requires : [ 'dialog' ],
9         init : function( editor )
10         {
11                 var command = editor.addCommand( 'about', new CKEDITOR.dialogCommand( 'about' ) );
12                 command.modes = { wysiwyg:1, source:1 };
13                 command.canUndo = false;
14                 command.readOnly = 1;
15
16                 editor.ui.addButton( 'About',
17                         {
18                                 label : editor.lang.about.title,
19                                 command : 'about'
20                         });
21
22                 CKEDITOR.dialog.add( 'about', this.path + 'dialogs/about.js' );
23         }
24 });