Created
March 18, 2013 20:15
-
-
Save iso100/5190421 to your computer and use it in GitHub Desktop.
Example Editor Styles for Wygwam
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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