styles.js 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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' : 'style3'} },
  58. { name: 'Источник новости', element: 'span', attributes: {'class' : 'style4'} },
  59. { name: 'Справочная информация',element: 'span', attributes: {'class' : 'style5'} },
  60. { name: 'Медицинская реклама', element: 'span', attributes: {'class' : 'rec'} },
  61. { name: 'Читайте также', element: 'span', attributes: {'class' : 'also'} },
  62. { name: 'news', element: 'span', attributes: {'class' : 'news'} },
  63. { name: 'Разрыв строки', element : 'div', attributes : { 'class' : 'clearing' } },
  64. { name: 'Styled image (left)', element: 'img', attributes: { 'class': 'left' } },
  65. { name: 'push', element : 'div', attributes : { 'class' : 'InviewElement' } },
  66. { name: 'push', element : 'h', attributes : { 'class' : 'InviewElement' } },
  67. { name: 'wide', element : 'p', attributes : { 'class' : 'wides' } },
  68. { name: 'Буквица', element : 'p', attributes : { 'class' : 'bukvica' } },
  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. /*
  75. { name: 'Marker', element: 'span', attributes: { 'class': 'marker' } },
  76. { name: 'Big', element: 'big' },
  77. { name: 'Small', element: 'small' },
  78. { name: 'Typewriter', element: 'tt' },
  79. { name: 'Computer Code', element: 'code' },
  80. { name: 'Keyboard Phrase', element: 'kbd' },
  81. { name: 'Sample Text', element: 'samp' },
  82. { name: 'Variable', element: 'var' },
  83. { name: 'Deleted Text', element: 'del' },
  84. { name: 'Inserted Text', element: 'ins' },
  85. { name: 'Cited Work', element: 'cite' },
  86. { name: 'Inline Quotation', element: 'q' },
  87. { name: 'Language: RTL', element: 'span', attributes: { 'dir': 'rtl' } },
  88. { name: 'Language: LTR', element: 'span', attributes: { 'dir': 'ltr' } },
  89. */
  90. /* Object Styles */
  91. {
  92. name: 'Styled image (left)',
  93. element: 'img',
  94. attributes: { 'class': 'left' }
  95. },
  96. {
  97. name: 'Styled image (right)',
  98. element: 'img',
  99. attributes: { 'class': 'right' }
  100. },
  101. {
  102. name: 'Negative',
  103. element: 'img',
  104. attributes: { 'class': 'negative' }
  105. },
  106. {
  107. name: 'bwcolor',
  108. element: 'img',
  109. attributes: { 'class': 'bcolor' }
  110. },
  111. {
  112. name: 'Compact table',
  113. element: 'table',
  114. attributes: {
  115. cellpadding: '5',
  116. cellspacing: '0',
  117. border: '1',
  118. bordercolor: '#ccc'
  119. },
  120. styles: {
  121. 'border-collapse': 'collapse'
  122. }
  123. },
  124. { name: 'Borderless Table', element: 'table', styles: { 'border-style': 'hidden', 'background-color': '#E6E6FA' } },
  125. { name: 'Square Bulleted List', element: 'ul', styles: { 'list-style-type': 'square' } }
  126. ] );