Skip to content

Instantly share code, notes, and snippets.

@iso100
Created March 18, 2013 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iso100/5190421 to your computer and use it in GitHub Desktop.
Save iso100/5190421 to your computer and use it in GitHub Desktop.
Example Editor Styles for Wygwam
CKEDITOR.stylesSet.add( 'editor_styles',
[
// Block Styles
//{ name: 'Blue Title', element: 'h2', styles: { 'color': 'Blue' } },
{ name: 'Legal Text', element: 'p', attributes: { 'class': 'legal' } },
{ name: 'CTA Button', element: 'a', attributes: { 'class': 'ctabutton' } },
{ name: 'Citation', element: 'span', attributes: { 'class': 'cite' } },
// Table Styles
{ name: 'Table: Comparison', element: 'table', attributes: { 'class': 'comparison-table', 'cellpadding': '4'} },
{ name: 'TH: Top', element: 'th', attributes: { 'class': 'top'} },
{ name: 'TH: Left', element: 'th', attributes: { 'class': 'left'} },
{ name: 'TD: Center', element: 'td', attributes: { 'class': 'center'} }
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment