table/utils
@ckeditor/ckeditor5-table/src/utils
module
Filtering
Functions
-
isTableContentSelected( selection ) → Boolean
static
Checks if a table widget content is selected.
-
isTableWidget( viewElement ) → Boolean
static
Checks if a given view element is a table widget.
-
isTableWidgetSelected( selection ) → Boolean
static
Checks if a table widget is the only selected element.
-
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 : DowncastWriter
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