NEWCKEditor AI on your premises: Hook your LLM and register MCP tools. Webinar coming soon!
Sign up (with export icon)

ResetIndentUsingClasses

Api-class iconclass

The list item block indentation behavior that resets class-based indentation toward zero.

Unlike IndentUsingClasses, this behavior is enabled only in the backward (outdent) direction when a class-based indentation is set. This is because class-based indentation values cannot be negative, so the only way to reset them to zero is to remove the class by outdenting.

Properties

  • Chevron-right icon

    classes : Array<string>
    inherited

    A list of classes used for indentation.

  • Chevron-right icon

    isForward : boolean
    inherited

    The direction of indentation.

Methods

  • Chevron-right icon

    constructor( config = { config.classes, config.direction } )
    inherited

    Creates an instance of the indentation behavior.

    Parameters

    config : object
    Properties
    config.classes : Array<string>

    A list of classes used for indentation.

    config.direction : 'forward' | 'backward'

    The direction of indentation.

  • Chevron-right icon

    checkEnabled( indentAttributeValue ) → boolean

    Parameters

    indentAttributeValue : string

    Returns

    boolean
  • Chevron-right icon

    getNextIndent( indentAttributeValue ) → string | undefined
    inherited

    Parameters

    indentAttributeValue : string

    Returns

    string | undefined