IndentClasses"

This website contains links to software which is either no longer maintained or will be supported only until the end of 2019 (CKFinder 2). For the latest documentation about current CKSource projects, including software like CKEditor 4/CKEditor 5, CKFinder 3, Cloud Services, Letters, Accessibility Checker, please visit the new documentation website.

If you look for an information about very old versions of CKEditor, FCKeditor and CKFinder check also the CKEditor forum, which was closed in 2015. If not, please head to StackOverflow for support.

Line 1: Line 1:
 
== IndentClasses ==
 
== IndentClasses ==
  
FCKeditor allows the use of CSS classes for block indentation.
+
FCKeditor allows the use of CSS classes for block indentation. The class should be defined in the [[FCKeditor 2.x/Developers Guide/Configuration/Configuration Options/EditorAreaCSS|EditorAreaCSS]] file.
 +
<pre>.Indent1
 +
{
 +
margin-left: 40px;
 +
}
 +
 
 +
.Indent2
 +
{
 +
margin-left: 80px;
 +
}
  
Example:we create a CSS file called 'indent.css' with the following code:
+
.Indent3
<pre>p
 
 
{
 
{
text-indent: 70px;
+
margin-left: 120px;
 
}
 
}
 
</pre>  
 
</pre>  
We apply the file to the IndentClass option:
+
We apply the class to the IndentClass option:
<pre>FCKConfig.IndentClasses = ['mycssstyles/indent.css']&nbsp;;
+
<pre>FCKConfig.IndentClasses = [ 'Indent1', 'Indent2', 'Indent3' ]&nbsp;;
 
</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.&nbsp;<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.&nbsp;<br>

Revision as of 14:54, 15 January 2008

IndentClasses

FCKeditor allows the use of CSS classes for block indentation. The class should be defined in the EditorAreaCSS file.

.Indent1
{
margin-left: 40px;
}

.Indent2
{
margin-left: 80px;
}

.Indent3
{
margin-left: 120px;
}

We apply the class to the IndentClass option:

FCKConfig.IndentClasses = [ 'Indent1', 'Indent2', 'Indent3' ] ;

NOTE: If you use this option the settings of IndentLength and the IndentUnit will be override.