Line 10: | Line 10: | ||
</pre> | </pre> | ||
We apply the file to the IndentClass option: | We apply the file to the IndentClass option: | ||
− | <pre>FCKConfig.IndentClasses = [ | + | <pre>FCKConfig.IndentClasses = ['mycssstyles/indent.css'] ; |
</pre> | </pre> | ||
'''NOTE''': If you use this option the settings of [[FCKeditor 2.x/Developers Guide/Configuration/Configuration Options/IndentLength|IndentLength]] and the [[FCKeditor 2.x/Developers Guide/Configuration/Configuration Options/IndentUnit|IndentUnit]] will be override. <br> | '''NOTE''': If you use this option the settings of [[FCKeditor 2.x/Developers Guide/Configuration/Configuration Options/IndentLength|IndentLength]] and the [[FCKeditor 2.x/Developers Guide/Configuration/Configuration Options/IndentUnit|IndentUnit]] will be override. <br> |
Revision as of 13:49, 11 January 2008
IndentClasses
FCKeditor allows the use of CSS classes for block indentation.
Example:we create a CSS file called 'indent.css' with the following code:
p { text-indent: 70px; }
We apply the file to the IndentClass option:
FCKConfig.IndentClasses = ['mycssstyles/indent.css'] ;
NOTE: If you use this option the settings of IndentLength and the IndentUnit will be override.