table/tablecaption/utils
@ckeditor/ckeditor5-table/src/tablecaption/utils
Filtering
Functions
-
getCaptionFromModelSelection( selection ) → Element | null
module:table/tablecaption/utils~getCaptionFromModelSelection
Returns the caption model element for a model selection. Returns
null
if the selection has no caption element ancestor.Parameters
selection : Selection | DocumentSelection
The selection checked for caption presence.
Returns
Element | null
-
getCaptionFromTableModelElement( tableModelElement ) → Element | null
module:table/tablecaption/utils~getCaptionFromTableModelElement
Returns the caption model element from a given table element. Returns
null
if no caption is found. -
getSelectionAffectedTable( position ) → Element
module:table/tablecaption/utils~getSelectionAffectedTable
Depending on the position of the selection we either return the table under cursor or look for the table higher in the hierarchy.
-
isTable( modelElement ) → Boolean
module:table/tablecaption/utils~isTable
Checks if the provided model element is a
table
. -
matchTableCaptionViewElement( element ) → Object | null
module:table/tablecaption/utils~matchTableCaptionViewElement
Matcher
pattern. Checks if a given element is a caption.
Every day, we work hard to keep our documentation complete. Have you spotted an outdated information? Is something missing? Please report it via our issue tracker.