Module

image/image/converters

@ckeditor/ckeditor5-image/src/image/converters

module

Filtering

Functions

  • srcsetAttributeConverter() → function

    static

    Converter used to convert the srcset model image attribute to the srcset, sizes and width attributes in the view.

    Returns

    function
  • viewFigureToModel() → function

    static

    Returns a function that converts the image view representation:

    <figure class="image"><img src="..." alt="..."></img></figure>

    to the model representation:

    <image src="..." alt="..."></image>

    The entire content of the <figure> element except the first <img> is being converted as children of the <image> model element.

    Returns

    function