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 : DocumentSelection
The selection checked for caption presence.
Returns
Element | null
-
getCaptionFromTableModelElement( tableModelElement ) → Element | null
module:table/tablecaption/utils~getCaptionFromTableModelElement
-
isTable( modelElement ) → boolean
module:table/tablecaption/utils~isTable
Checks if the provided model element is a
table
.Parameters
modelElement : null | Element | DocumentFragment
Element to check if it is a table.
Returns
boolean
-
matchTableCaptionViewElement( element ) → object | null
module:table/tablecaption/utils~matchTableCaptionViewElement
Matcher
pattern. Checks if a given element is a caption.There are two possible forms of the valid caption:
- A
<figcaption>
element inside a<figure class="table">
element. - A
<caption>
inside a.
Parameters
element : Element
Returns
object | null
Returns the object accepted by
Matcher
ornull
if the element cannot be matched.
Every day, we work hard to keep our documentation complete. Have you spotted outdated information? Is something missing? Please report it via our issue tracker.
With the release of version 42.0.0, we have rewritten much of our documentation to reflect the new import paths and features. We appreciate your feedback to help us ensure its accuracy and completeness.
- A