JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.2
[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         requires : [ 'dialog' ],\r
9         init : function( editor )\r
10         {\r
11                 var command = editor.addCommand( 'about', new CKEDITOR.dialogCommand( 'about' ) );\r
12                 command.modes = { wysiwyg:1, source:1 };\r
13                 command.canUndo = false;\r
14 \r
15                 editor.ui.addButton( 'About',\r
16                         {\r
17                                 label : editor.lang.about.title,\r
18                                 command : 'about'\r
19                         });\r
20 \r
21                 CKEDITOR.dialog.add( 'about', this.path + 'dialogs/about.js' );\r
22         }\r
23 });\r