Module

image/imagestyle/converters

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

module

Filtering

Functions

  • modelToViewStyleAttribute( styles ) → function

    static

    Returns a converter for the imageStyle attribute. It can be used for adding, changing and removing the attribute.

    Parameters

    styles : Object

    An object containing available styles. See ImageStyleFormat for more details.

    Returns

    function

    A model-to-view attribute converter.

  • viewToModelStyleAttribute( styles ) → function

    static

    Returns a view-to-model converter converting image CSS classes to a proper value in the model.

    Parameters

    styles : Array.<ImageStyleFormat>

    The styles for which the converter is created.

    Returns

    function

    A view-to-model converter.