styles.js 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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: 'Styled image (right)', element: 'img', attributes: { 'class': 'right' } },
  64. { name: 'Satic', element: 'img', attributes: { 'class': 'static' } },
  65. { name: 'push', element : 'div', attributes : { 'class' : 'InviewElement' } },
  66. /* { name: 'push', element : 'h2', attributes : { 'class' : 'InviewElement' } },*/
  67. { name: 'wide', element : 'p', attributes : { 'class' : 'wides' } },
  68. { name: 'Буквица', element : 'p', attributes : { 'class' : 'bukvica' } },
  69. { name: 'Подпись', element: 'div', attributes:{'class' : 'image-title'} },
  70. { name: 'Разрыв строки', element : 'div', attributes : { 'class' : 'clearing' } },
  71. { name: 'Info Block', element : 'div', attributes : { 'class' : 'InfoBlock' } },
  72. { name: 'Обтекание справа 50%', element : 'div', attributes : { 'class' : 'divfloatr50' } },
  73. { name: 'Обтекание справа 33%', element : 'div', attributes : { 'class' : 'divfloatr33' } },
  74. { name: 'Panorama VR', element : 'img', attributes : { 'class' : 'play-vr' } },
  75. { name: 'Серый', element : 'div', attributes : { 'style' : 'background-color:#eee' } },
  76. { name: 'Персона', element : 'a', attributes : { 'class' : 'person' } },
  77. /*
  78. { name: 'Marker', element: 'span', attributes: { 'class': 'marker' } },
  79. { name: 'Big', element: 'big' },
  80. { name: 'Small', element: 'small' },
  81. { name: 'Typewriter', element: 'tt' },
  82. { name: 'Computer Code', element: 'code' },
  83. { name: 'Keyboard Phrase', element: 'kbd' },
  84. { name: 'Sample Text', element: 'samp' },
  85. { name: 'Variable', element: 'var' },
  86. { name: 'Deleted Text', element: 'del' },
  87. { name: 'Inserted Text', element: 'ins' },
  88. { name: 'Cited Work', element: 'cite' },
  89. { name: 'Inline Quotation', element: 'q' },
  90. { name: 'Language: RTL', element: 'span', attributes: { 'dir': 'rtl' } },
  91. { name: 'Language: LTR', element: 'span', attributes: { 'dir': 'ltr' } },
  92. */
  93. /* Object Styles */
  94. {
  95. name: 'Styled image (left)',
  96. element: 'img',
  97. attributes: { 'class': 'left' }
  98. },
  99. {
  100. name: 'Styled image (right)',
  101. element: 'img',
  102. attributes: { 'class': 'right' }
  103. },
  104. {
  105. name: 'Negative',
  106. element: 'img',
  107. attributes: { 'class': 'negative' }
  108. },
  109. {
  110. name: 'bwcolor',
  111. element: 'img',
  112. attributes: { 'class': 'bcolor' }
  113. },
  114. {
  115. name: 'Compact table',
  116. element: 'table',
  117. attributes: {
  118. cellpadding: '5',
  119. cellspacing: '0',
  120. border: '1',
  121. bordercolor: '#ccc'
  122. },
  123. styles: {
  124. 'border-collapse': 'collapse'
  125. }
  126. },
  127. { name: 'Borderless Table', element: 'table', styles: { 'border-style': 'hidden', 'background-color': '#E6E6FA' } },
  128. { name: 'Square Bulleted List', element: 'ul', styles: { 'list-style-type': 'square' } }
  129. ] );