IndentUsingClasses (indent/indentcommandbehavior)
@ckeditor/ckeditor5-indent/src/indentcommandbehavior/indentusingclasses
The block indentation behavior that uses classes to set indentation.
Filtering
Properties
-
classes : Array.<String>
module:indent/indentcommandbehavior/indentusingclasses~IndentUsingClasses#classes
A list of classes used for indentation.
-
isForward : Boolean
module:indent/indentcommandbehavior/indentusingclasses~IndentUsingClasses#isForward
The direction of indentation.
Methods
-
constructor( config = { config.direction, config.classes } )
module:indent/indentcommandbehavior/indentusingclasses~IndentUsingClasses#constructor
Creates an instance of the indentation behavior.
Parameters
config : Object
-
Properties
config.direction : String
The direction of indentation.
config.classes : Array.<String>
A list of classes used for indentation.
-
checkEnabled( indentAttributeValue ) → Boolean
module:indent/indentcommandbehavior/indentusingclasses~IndentUsingClasses#checkEnabled
Checks if the command should be enabled.
Parameters
indentAttributeValue : String
The current indent attribute value.
Returns
Boolean
-
getNextIndent( indentAttributeValue ) → String | undefined
module:indent/indentcommandbehavior/indentusingclasses~IndentUsingClasses#getNextIndent
Returns a new indent attribute value based on the current indent. This method returns
undefined
when the indentation should be removed.Parameters
indentAttributeValue : String
The current indent attribute value.
Returns
String | undefined
Every day, we work hard to keep our documentation complete. Have you spotted an outdated information? Is something missing? Please report it via our issue tracker.