]> git.immae.eu Git - perso/Immae/Projets/packagist/connexionswing-ckeditor-component.git/blob - sources/plugins/about/dialogs/about.js
Initial commit
[perso/Immae/Projets/packagist/connexionswing-ckeditor-component.git] / sources / plugins / about / dialogs / about.js
1 /**
2 * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3 * For licensing, see LICENSE.md or http://ckeditor.com/license
4 */
5
6 CKEDITOR.dialog.add( 'about', function( editor ) {
7 var lang = editor.lang.about,
8 imagePath = CKEDITOR.getUrl( CKEDITOR.plugins.get( 'about' ).path + 'dialogs/' + ( CKEDITOR.env.hidpi ? 'hidpi/' : '' ) + 'logo_ckeditor.png' );
9
10 return {
11 title: CKEDITOR.env.ie ? lang.dlgTitle : lang.title,
12 minWidth: 390,
13 minHeight: 230,
14 contents: [ {
15 id: 'tab1',
16 label: '',
17 title: '',
18 expand: true,
19 padding: 0,
20 elements: [
21 {
22 type: 'html',
23 html: '<style type="text/css">' +
24 '.cke_about_container' +
25 '{' +
26 'color:#000 !important;' +
27 'padding:10px 10px 0;' +
28 'margin-top:5px' +
29 '}' +
30 '.cke_about_container p' +
31 '{' +
32 'margin: 0 0 10px;' +
33 '}' +
34 '.cke_about_container .cke_about_logo' +
35 '{' +
36 'height:81px;' +
37 'background-color:#fff;' +
38 'background-image:url(' + imagePath + ');' +
39 ( CKEDITOR.env.hidpi ? 'background-size:163px 58px;' : '' ) +
40 'background-position:center; ' +
41 'background-repeat:no-repeat;' +
42 'margin-bottom:10px;' +
43 '}' +
44 '.cke_about_container a' +
45 '{' +
46 'cursor:pointer !important;' +
47 'color:#00B2CE !important;' +
48 'text-decoration:underline !important;' +
49 '}' +
50 '</style>' +
51 '<div class="cke_about_container">' +
52 '<div class="cke_about_logo"></div>' +
53 '<p>' +
54 'CKEditor ' + CKEDITOR.version + ' (revision ' + CKEDITOR.revision + ')<br>' +
55 '<a target="_blank" href="http://ckeditor.com/">http://ckeditor.com</a>' +
56 '</p>' +
57 '<p>' +
58 lang.help.replace( '$1', '<a target="_blank" href="http://docs.ckeditor.com/user">' + lang.userGuide + '</a>' ) +
59 '</p>' +
60 '<p>' +
61 lang.moreInfo + '<br>' +
62 '<a target="_blank" href="http://ckeditor.com/about/license">http://ckeditor.com/about/license</a>' +
63 '</p>' +
64 '<p>' +
65 lang.copy.replace( '$1', '<a target="_blank" href="http://cksource.com/">CKSource</a> - Frederico Knabben' ) +
66 '</p>' +
67 '</div>'
68 }
69 ]
70 } ],
71 buttons: [ CKEDITOR.dialog.cancelButton ]
72 };
73 } );