image/imagestyle/utils
@ckeditor/ckeditor5-image/src/imagestyle/utils
module
Filtering
Constants
-
defaultIcons : Object.<String, String>
Default image style icons provided by the plugin that can be referred in the
styles
configuration.There are 4 icons available:
'full'
,'left'
,'center'
and'right'
. -
defaultStyles : Object.<String, Object>
Default image styles provided by the plugin that can be referred in the
styles
configuration.Among them, 2 default semantic content styles are available:
full
is a full–width image without any CSS class,side
is a side image styled with theimage-style-side
CSS class.
There are also 3 styles focused on formatting:
alignLeft
aligns the image to the left using theimage-style-align-left
class,alignCenter
centers the image using theimage-style-align-center
class,alignRight
aligns the image to the right using theimage-style-align-right
class,
Functions
-
normalizeImageStyles() → Array.<ImageStyleFormat>
Returns a
styles
array with items normalized in theImageStyleFormat
format and a completeicon
markup for each style.Returns
Array.<ImageStyleFormat>