image/imagestyle/utils
@ckeditor/ckeditor5-image/src/imagestyle/utils
module
Filtering
Constants
-
DEFAULT_DROPDOWN_DEFINITIONS : Array<ImageStyleDropdownDefinition>
module:image/imagestyle/utils#DEFAULT_DROPDOWN_DEFINITIONS
Default drop-downs provided by the plugin that can be referred in the
toolbar
configuration. The drop-downs are containers for the image style options.If both of the
ImageEditing
plugins are loaded, there are 2 predefined drop-downs available:'imageStyle:wrapText'
, which contains thealignLeft
andalignRight
options, that is, those that wraps the text around the image,'imageStyle:breakText'
, which contains thealignBlockLeft
,alignCenter
andalignBlockRight
options, that is, those that breaks the text around the image.
-
DEFAULT_ICONS : Record<string, string>
module:image/imagestyle/utils#DEFAULT_ICONS
-
DEFAULT_OPTIONS : Record<string, ImageStyleOptionDefinition>
module:image/imagestyle/utils#DEFAULT_OPTIONS
Default image style options provided by the plugin that can be referred in the
styles
configuration.There are available 5 styles focused on formatting:
'alignLeft'
aligns the inline or block image to the left and wraps it with the text using theimage-style-align-left
class,'alignRight'
aligns the inline or block image to the right and wraps it with the text using theimage-style-align-right
class,'alignCenter'
centers the block image using theimage-style-align-center
class,'alignBlockLeft'
aligns the block image to the left using theimage-style-block-align-left
class,'alignBlockRight'
aligns the block image to the right using theimage-style-block-align-right
class,
and 3 semantic styles:
'inline'
is an inline image without any CSS class,'block'
is a block image without any CSS class,'side'
is a block image styled with theimage-style-side
CSS class.
-
utils : object
module:image/imagestyle/utils#utils
Every day, we work hard to keep our documentation complete. Have you spotted outdated information? Is something missing? Please report it via our issue tracker.