(New page: == JustifyClasses == FCKeditor allows the use of CSS classes for justifying the text. Example: <pre> FCKConfig.JustifyClasses = ['mycssstyles/justify.css'] ; </pre>) |
|||
Line 1: | Line 1: | ||
== JustifyClasses == | == JustifyClasses == | ||
− | FCKeditor allows the use of CSS classes for justifying the text. | + | FCKeditor allows the use of CSS classes for justifying the text. The class should be defined in the [[FCKeditor 2.x/Developers Guide/Configuration/Configuration Options/EditorAreaCSS|EditorAreaCSS]] file: |
− | + | <pre>.JustifyLeft | |
− | <pre> | + | { |
− | FCKConfig.JustifyClasses = [' | + | text-align: left; |
+ | } | ||
+ | |||
+ | .JustifyRight | ||
+ | { | ||
+ | text-align: right; | ||
+ | } | ||
+ | |||
+ | .JustifyCenter | ||
+ | { | ||
+ | text-align: center; | ||
+ | } | ||
+ | |||
+ | .JustifyFull | ||
+ | { | ||
+ | text-align: justify; | ||
+ | } | ||
+ | </pre> | ||
+ | We apply the class to the IndentClass option: | ||
+ | <pre>FCKConfig.JustifyClasses = [ 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyFull' ] ; | ||
</pre> | </pre> |
Latest revision as of 15:00, 15 January 2008
JustifyClasses
FCKeditor allows the use of CSS classes for justifying the text. The class should be defined in the EditorAreaCSS file:
.JustifyLeft { text-align: left; } .JustifyRight { text-align: right; } .JustifyCenter { text-align: center; } .JustifyFull { text-align: justify; }
We apply the class to the IndentClass option:
FCKConfig.JustifyClasses = [ 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyFull' ] ;