(New page: == CoreStyles == This feature contains information about the styles used in the FCKeditor. It is recommended not to add, rename or remove styles here but only apply definition changes. If...) |
(No difference)
|
Latest revision as of 14:04, 15 January 2008
CoreStyles
This feature contains information about the styles used in the FCKeditor. It is recommended not to add, rename or remove styles here but only apply definition changes. If you want to add a new style check the CustomStyles configuration option.
Full Code:
FCKConfig.CoreStyles = { // Basic Inline Styles. 'Bold' : { Element : 'b', Overrides : 'strong' }, 'Italic' : { Element : 'i', Overrides : 'em' }, 'Underline' : { Element : 'u' }, 'StrikeThrough' : { Element : 'strike' }, 'Subscript' : { Element : 'sub' }, 'Superscript' : { Element : 'sup' }, // Basic Block Styles (Font Format Combo). 'p' : { Element : 'p' }, 'div' : { Element : 'div' }, 'pre' : { Element : 'pre' }, 'address' : { Element : 'address' }, 'h1' : { Element : 'h1' }, 'h2' : { Element : 'h2' }, 'h3' : { Element : 'h3' }, 'h4' : { Element : 'h4' }, 'h5' : { Element : 'h5' }, 'h6' : { Element : 'h6' }, // Other formatting features. 'FontFace' : { Element : 'span', Styles : { 'font-family' : '#("Font")' }, Overrides : [ { Element : 'font', Attributes : { 'face' : null } } ] }, 'Size' : { Element : 'span', Styles : { 'font-size' : '#("Size","fontSize")' }, Overrides : [ { Element : 'font', Attributes : { 'size' : null } } ] }, 'Color' : { Element : 'span', Styles : { 'color' : '#("Color","color")' }, Overrides : [ { Element : 'font', Attributes : { 'color' : null } } ] }, 'BackColor' : { Element : 'span', Styles : { 'background-color' : '#("Color","color")' } } };