Report an issue
Module

table/utils

@ckeditor/ckeditor5-table/src/utils

module

Filtering

Functions

  • isTableContentSelected( selection ) → Boolean

    static

    Checks if a table widget content is selected.

    Parameters

    selection : Selection | DocumentSelection

    Returns

    Boolean
  • isTableWidget( viewElement ) → Boolean

    static

    Checks if a given view element is a table widget.

    Parameters

    viewElement : Element

    Returns

    Boolean
  • isTableWidgetSelected( selection ) → Boolean

    static

    Checks if a table widget is the only selected element.

    Parameters

    selection : Selection | DocumentSelection

    Returns

    Boolean
  • toTableWidget( viewElement, writer, label ) → Element

    static

    Converts a given Element to a table widget:

    • Adds a custom property allowing to recognize the table widget element.
    • Calls the toWidget function with the proper element's label creator.

    Parameters

    viewElement : Element
    writer : Writer

    An instance of the view writer.

    label : String

    The element's label. It will be concatenated with the table alt attribute if one is present.

    Returns

    Element