JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6.3
[ckeditor.git] / _source / plugins / about / plugin.js
1 /*\r
2 Copyright (c) 2003-2012, 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                 command.readOnly = 1;\r
15 \r
16                 editor.ui.addButton( 'About',\r
17                         {\r
18                                 label : editor.lang.about.title,\r
19                                 command : 'about'\r
20                         });\r
21 \r
22                 CKEDITOR.dialog.add( 'about', this.path + 'dialogs/about.js' );\r
23         }\r
24 });\r