Interface

AttributeStrategy (list/listproperties)

@ckeditor/ckeditor5-list/src/listproperties/listpropertiesediting

interface

Strategy for dealing with listItem attributes supported by this plugin.

Filtering

Properties

Methods

  • addCommand( editor ) → void

    Registers an editor command.

    Parameters

    editor : Editor

    Returns

    void
  • appliesToListItem( element ) → boolean

    Verifies whether the strategy is applicable for the specified model element.

    Parameters

    element : Item

    Returns

    boolean
  • getAttributeOnUpcast( element ) → unknown

    Retrieves the property value from the view element.

    Parameters

    element : Element

    Returns

    unknown
  • hasValidAttribute( element ) → boolean

    Verifies whether the model attribute value is valid.

    Parameters

    element : Element

    Returns

    boolean
  • setAttributeOnDowncast( writer, value, element ) → void

    Sets the property on the view element.

    Parameters

    writer : DowncastWriter
    value : unknown
    element : Element

    Returns

    void