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

ResetIndentUsingOffset

Api-class iconclass

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

Unlike IndentUsingOffset, this behavior is enabled only when the current indentation value can be moved toward zero:

  • for forward direction only when the current offset is negative,
  • for backward direction only when the current offset is positive.

Properties

  • Chevron-right icon

    isForward : boolean
    inherited

    The direction of indentation.

  • Chevron-right icon

    offset : number
    inherited

    The offset of the next indentation step.

  • Chevron-right icon

    unit : string
    inherited

Methods

  • Chevron-right icon

    constructor( config = { config.direction, config.offset, config.unit } )
    inherited

    Creates an instance of the indentation behavior.

    Parameters

    config : object
    Properties
    config.direction : 'forward' | 'backward'

    The direction of indentation.

    config.offset : number

    The offset of the next indentation step.

    config.unit : string

    Indentation unit.

  • 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