about.js 2.3 KB

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