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