You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

111 lines
3.5 KiB

  1. /**
  2. * Copyright (c) 2003-2014, 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. { name: 'Italic Title', element: 'h2', styles: { 'font-style': 'italic' } },
  31. { name: 'Subtitle', element: 'h3', styles: { 'color': '#aaa', 'font-style': 'italic' } },
  32. {
  33. name: 'Special Container',
  34. element: 'div',
  35. styles: {
  36. padding: '5px 10px',
  37. background: '#eee',
  38. border: '1px solid #ccc'
  39. }
  40. },
  41. /* Inline Styles */
  42. // These are core styles available as toolbar buttons. You may opt enabling
  43. // some of them in the Styles combo, removing them from the toolbar.
  44. // (This requires the "stylescombo" plugin)
  45. /*
  46. { name: 'Strong', element: 'strong', overrides: 'b' },
  47. { name: 'Emphasis', element: 'em' , overrides: 'i' },
  48. { name: 'Underline', element: 'u' },
  49. { name: 'Strikethrough', element: 'strike' },
  50. { name: 'Subscript', element: 'sub' },
  51. { name: 'Superscript', element: 'sup' },
  52. */
  53. { name: 'Marker', element: 'span', attributes: { 'class': 'marker' } },
  54. { name: 'Big', element: 'big' },
  55. { name: 'Small', element: 'small' },
  56. { name: 'Typewriter', element: 'tt' },
  57. { name: 'Computer Code', element: 'code' },
  58. { name: 'Keyboard Phrase', element: 'kbd' },
  59. { name: 'Sample Text', element: 'samp' },
  60. { name: 'Variable', element: 'var' },
  61. { name: 'Deleted Text', element: 'del' },
  62. { name: 'Inserted Text', element: 'ins' },
  63. { name: 'Cited Work', element: 'cite' },
  64. { name: 'Inline Quotation', element: 'q' },
  65. { name: 'Language: RTL', element: 'span', attributes: { 'dir': 'rtl' } },
  66. { name: 'Language: LTR', element: 'span', attributes: { 'dir': 'ltr' } },
  67. /* Object Styles */
  68. {
  69. name: 'Styled image (left)',
  70. element: 'img',
  71. attributes: { 'class': 'left' }
  72. },
  73. {
  74. name: 'Styled image (right)',
  75. element: 'img',
  76. attributes: { 'class': 'right' }
  77. },
  78. {
  79. name: 'Compact table',
  80. element: 'table',
  81. attributes: {
  82. cellpadding: '5',
  83. cellspacing: '0',
  84. border: '1',
  85. bordercolor: '#ccc'
  86. },
  87. styles: {
  88. 'border-collapse': 'collapse'
  89. }
  90. },
  91. { name: 'Borderless Table', element: 'table', styles: { 'border-style': 'hidden', 'background-color': '#E6E6FA' } },
  92. { name: 'Square Bulleted List', element: 'ul', styles: { 'list-style-type': 'square' } }
  93. ] );