image/imagestyle/converters
@ckeditor/ckeditor5-image/src/imagestyle/converters
module
Filtering
Functions
-
modelToViewStyleAttribute( styles ) → function
Returns a converter for the
imageStyle
attribute. It can be used for adding, changing and removing the attribute.Parameters
styles : Array.<ImageStyleOptionDefinition>
An array containing available image style options.
Returns
function
A model-to-view attribute converter.
-
viewToModelStyleAttribute( styles ) → function
Returns a view-to-model converter converting image CSS classes to a proper value in the model.
Parameters
styles : Array.<ImageStyleOptionDefinition>
Image style options for which the converter is created.
Returns
function
A view-to-model converter.
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.