JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
dea847092d4e0975fda6ea37640e404b5fa27cbd
[ckeditor.git] / _source / plugins / about / dialogs / about.js
1 /*\r
2 Copyright (c) 2003-2011, 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.dialog.add( 'about', function( editor )\r
7 {\r
8         var lang = editor.lang.about;\r
9 \r
10         return {\r
11                 title : CKEDITOR.env.ie ? lang.dlgTitle : lang.title,\r
12                 minWidth : 390,\r
13                 minHeight : 230,\r
14                 contents : [\r
15                         {\r
16                                 id : 'tab1',\r
17                                 label : '',\r
18                                 title : '',\r
19                                 expand : true,\r
20                                 padding : 0,\r
21                                 elements :\r
22                                 [\r
23                                         {\r
24                                                 type : 'html',\r
25                                                 html :\r
26                                                         '<style type="text/css">' +\r
27                                                                 '.cke_about_container' +\r
28                                                                 '{' +\r
29                                                                         'color:#000 !important;' +\r
30                                                                         'padding:10px 10px 0;' +\r
31                                                                         'margin-top:5px' +\r
32                                                                 '}' +\r
33                                                                 '.cke_about_container p' +\r
34                                                                 '{' +\r
35                                                                         'margin: 0 0 10px;' +\r
36                                                                 '}' +\r
37                                                                 '.cke_about_container .cke_about_logo' +\r
38                                                                 '{' +\r
39                                                                         'height:81px;' +\r
40                                                                         'background-color:#fff;' +\r
41                                                                         'background-image:url(' + CKEDITOR.plugins.get( 'about' ).path + 'dialogs/logo_ckeditor.png);' +\r
42                                                                         'background-position:center; ' +\r
43                                                                         'background-repeat:no-repeat;' +\r
44                                                                         'margin-bottom:10px;' +\r
45                                                                 '}' +\r
46                                                                 '.cke_about_container a' +\r
47                                                                 '{' +\r
48                                                                         'cursor:pointer !important;' +\r
49                                                                         'color:blue !important;' +\r
50                                                                         'text-decoration:underline !important;' +\r
51                                                                 '}' +\r
52                                                         '</style>' +\r
53                                                         '<div class="cke_about_container">' +\r
54                                                                 '<div class="cke_about_logo"></div>' +\r
55                                                                 '<p>' +\r
56                                                                         'CKEditor ' + CKEDITOR.version + ' (revision ' + CKEDITOR.revision + ')<br>' +\r
57                                                                         '<a href="http://ckeditor.com/">http://ckeditor.com</a>' +\r
58                                                                 '</p>' +\r
59                                                                 '<p>' +\r
60                                                                         lang.moreInfo + '<br>' +\r
61                                                                         '<a href="http://ckeditor.com/license">http://ckeditor.com/license</a>' +\r
62                                                                 '</p>' +\r
63                                                                 '<p>' +\r
64                                                                         lang.copy.replace( '$1', '<a href="http://cksource.com/">CKSource</a> - Frederico Knabben' ) +\r
65                                                                 '</p>' +\r
66                                                         '</div>'\r
67                                         }\r
68                                 ]\r
69                         }\r
70                 ],\r
71                 buttons : [ CKEDITOR.dialog.cancelButton ]\r
72         };\r
73 } );\r