IndentUsingOffset (indent/indentcommandbehavior)
@ckeditor/ckeditor5-indent/src/indentcommandbehavior/indentusingoffset
The block indentation behavior that uses offsets to set indentation.
Filtering
Properties
-
isForward : Boolean
module:indent/indentcommandbehavior/indentusingoffset~IndentUsingOffset#isForward
The direction of indentation.
-
offset : Number
module:indent/indentcommandbehavior/indentusingoffset~IndentUsingOffset#offset
The offset of the next indentation step.
-
unit : String
module:indent/indentcommandbehavior/indentusingoffset~IndentUsingOffset#unit
Indentation unit.
Methods
-
constructor( config = { config.direction, config.offset, config.unit } )
module:indent/indentcommandbehavior/indentusingoffset~IndentUsingOffset#constructor
Creates an instance of the indentation behavior.
Parameters
config : Object
-
Properties
config.direction : String
The direction of indentation.
config.offset : Number
The offset of the next indentation step.
config.unit : String
Indentation unit.
-
checkEnabled( indentAttributeValue ) → Boolean
module:indent/indentcommandbehavior/indentusingoffset~IndentUsingOffset#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/indentusingoffset~IndentUsingOffset#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.