Report an issue
Module

table/commands/utils

@ckeditor/ckeditor5-table/src/commands/utils

module

Filtering

Functions

  • getParentTable( position ) → Element | DocumentFragment

    static

    Returns the parent table.

    Parameters

    position : Position

    Returns

    Element | DocumentFragment
  • updateNumericAttribute( key, value, item, writer, defaultValue )

    static

    A common method to update the numeric value. If a value is the default one, it will be unset.

    Parameters

    key : String

    Attribute key.

    value : *

    The new attribute value.

    item : Item

    Model item on which the attribute will be set.

    writer : Writer
    defaultValue : *

    Default attribute value. If a value is lower or equal, it will be unset.