image/imagecaption/utils
@ckeditor/ckeditor5-image/src/imagecaption/utils
module
Filtering
Functions
-
getCaptionFromImageModelElement( imageModelElement ) → Element | nullReturns the caption model element from a given image element. Returns
nullif no caption is found. -
getCaptionFromModelSelection( imageUtils, selection ) → Element | nullReturns the caption model element for a model selection. Returns
nullif the selection has no caption element ancestor. -
matchImageCaptionViewElement( imageUtils, element ) → Object | nullMatcherpattern. Checks if a given element is a<figcaption>element that is placed inside the image<figure>element.Parameters
imageUtils : ImageUtilselement : Element
Returns
Object | nullReturns the object accepted by
Matcherornullif the element cannot be matched.