styles.js 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. /**
  2. * Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or http://ckeditor.com/license
  4. */
  5. // This file contains style definitions that can be used by CKEditor plugins.
  6. //
  7. // The most common use for it is the "stylescombo" plugin, which shows a combo
  8. // in the editor toolbar, containing all styles. Other plugins instead, like
  9. // the div plugin, use a subset of the styles on their feature.
  10. //
  11. // If you don't have plugins that depend on this file, you can simply ignore it.
  12. // Otherwise it is strongly recommended to customize this file to match your
  13. // website requirements and design properly.
  14. CKEDITOR.stylesSet.add( 'default', [
  15. /* Block Styles */
  16. // These styles are already available in the "Format" combo ("format" plugin),
  17. // so they are not needed here by default. You may enable them to avoid
  18. // placing the "Format" combo in the toolbar, maintaining the same features.
  19. /*
  20. { name: 'Paragraph', element: 'p' },
  21. { name: 'Heading 1', element: 'h1' },
  22. { name: 'Heading 2', element: 'h2' },
  23. { name: 'Heading 3', element: 'h3' },
  24. { name: 'Heading 4', element: 'h4' },
  25. { name: 'Heading 5', element: 'h5' },
  26. { name: 'Heading 6', element: 'h6' },
  27. { name: 'Preformatted Text',element: 'pre' },
  28. { name: 'Address', element: 'address' },
  29. */
  30. /*
  31. { name: 'Italic Title', element: 'h2', styles: { 'font-style': 'italic' } },
  32. { name: 'Subtitle', element: 'h3', styles: { 'color': '#aaa', 'font-style': 'italic' } },
  33. {
  34. name: 'Special Container',
  35. element: 'div',
  36. styles: {
  37. padding: '5px 10px',
  38. background: '#eee',
  39. border: '1px solid #ccc'
  40. }
  41. },
  42. */
  43. /* Inline Styles */
  44. // These are core styles available as toolbar buttons. You may opt enabling
  45. // some of them in the Styles combo, removing them from the toolbar.
  46. // (This requires the "stylescombo" plugin)
  47. /*
  48. { name: 'Strong', element: 'strong', overrides: 'b' },
  49. { name: 'Emphasis', element: 'em' , overrides: 'i' },
  50. { name: 'Underline', element: 'u' },
  51. { name: 'Strikethrough', element: 'strike' },
  52. { name: 'Subscript', element: 'sub' },
  53. { name: 'Superscript', element: 'sup' },
  54. */
  55. { name: 'Цитата', element: 'span', attributes: { 'class': 'style1' } },
  56. { name: 'Style№2', element: 'span', attributes: {'class' : 'style2'} },
  57. { name: 'Источник новости', element: 'span', attributes: {'class' : 'style4'} },
  58. { name: 'Справочная информация',element: 'span', attributes: {'class' : 'style5'} },
  59. { name: 'Медицинская реклама', element: 'span', attributes: {'class' : 'rec'} },
  60. { name: 'Читайте также', element: 'span', attributes: {'class' : 'also'} },
  61. { name: 'news', element: 'span', attributes: {'class' : 'news'} },
  62. { name: 'Styled image (left)', element: 'img', attributes: { 'class': 'left' } },
  63. { name: 'push', element : 'div', attributes : { 'class' : 'InviewElement' } },
  64. /* { name: 'push', element : 'h2', attributes : { 'class' : 'InviewElement' } },*/
  65. { name: 'wide', element : 'p', attributes : { 'class' : 'wides' } },
  66. { name: 'Буквица', element : 'p', attributes : { 'class' : 'bukvica' } },
  67. { name: 'Подпись', element: 'div', attributes:{'class' : 'image-title'} },
  68. { name: 'Разрыв строки', element : 'div', attributes : { 'class' : 'clearing' } },
  69. { name: 'Info Block', element : 'div', attributes : { 'class' : 'InfoBlock' } },
  70. { name: 'Обтекание справа 50%', element : 'div', attributes : { 'class' : 'divfloatr50' } },
  71. { name: 'Обтекание справа 33%', element : 'div', attributes : { 'class' : 'divfloatr33' } },
  72. { name: 'Panorama VR', element : 'img', attributes : { 'class' : 'play-vr' } },
  73. { name: 'Серый', element : 'div', attributes : { 'style' : 'background-color:#eee' } },
  74. { name: 'Персона', element : 'a', attributes : { 'class' : 'person' } },
  75. /*
  76. { name: 'Marker', element: 'span', attributes: { 'class': 'marker' } },
  77. { name: 'Big', element: 'big' },
  78. { name: 'Small', element: 'small' },
  79. { name: 'Typewriter', element: 'tt' },
  80. { name: 'Computer Code', element: 'code' },
  81. { name: 'Keyboard Phrase', element: 'kbd' },
  82. { name: 'Sample Text', element: 'samp' },
  83. { name: 'Variable', element: 'var' },
  84. { name: 'Deleted Text', element: 'del' },
  85. { name: 'Inserted Text', element: 'ins' },
  86. { name: 'Cited Work', element: 'cite' },
  87. { name: 'Inline Quotation', element: 'q' },
  88. { name: 'Language: RTL', element: 'span', attributes: { 'dir': 'rtl' } },
  89. { name: 'Language: LTR', element: 'span', attributes: { 'dir': 'ltr' } },
  90. */
  91. /* Object Styles */
  92. {
  93. name: 'Styled image (left)',
  94. element: 'img',
  95. attributes: { 'class': 'left' }
  96. },
  97. {
  98. name: 'Styled image (right)',
  99. element: 'img',
  100. attributes: { 'class': 'right' }
  101. },
  102. {
  103. name: 'Negative',
  104. element: 'img',
  105. attributes: { 'class': 'negative' }
  106. },
  107. {
  108. name: 'bwcolor',
  109. element: 'img',
  110. attributes: { 'class': 'bcolor' }
  111. },
  112. {
  113. name: 'Compact table',
  114. element: 'table',
  115. attributes: {
  116. cellpadding: '5',
  117. cellspacing: '0',
  118. border: '1',
  119. bordercolor: '#ccc'
  120. },
  121. styles: {
  122. 'border-collapse': 'collapse'
  123. }
  124. },
  125. { name: 'Borderless Table', element: 'table', styles: { 'border-style': 'hidden', 'background-color': '#E6E6FA' } },
  126. { name: 'Square Bulleted List', element: 'ul', styles: { 'list-style-type': 'square' } }
  127. ] );