JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.1
[ckeditor.git] / _source / plugins / about / plugin.js
1 /*\r
2 Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
3 For licensing, see LICENSE.html or http://ckeditor.com/license\r
4 */\r
5 \r
6 CKEDITOR.plugins.add( 'about',\r
7 {\r
8         init : function( editor )\r
9         {\r
10                 var command = editor.addCommand( 'about', new CKEDITOR.dialogCommand( 'about' ) );\r
11                 command.modes = { wysiwyg:1, source:1 };\r
12                 command.canUndo = false;\r
13 \r
14                 editor.ui.addButton( 'About',\r
15                         {\r
16                                 label : editor.lang.about.title,\r
17                                 command : 'about'\r
18                         });\r
19 \r
20                 CKEDITOR.dialog.add( 'about', this.path + 'dialogs/about.js' );\r
21         }\r
22 });\r