alignment/utils
@ckeditor/ckeditor5-alignment/src/utils
module
Filtering
Constants
-
The list of supported alignment options:
'left'
,'right'
,'center'
,'justify'
Functions
-
isDefault( alignment, locale ) → Boolean
Checks whether alignment is the default one considering the direction of the editor content.
-
isSupported( option ) → Boolean
Checks whether the passed option is supported by
AlignmentEditing
.Parameters
option : String
The option value to check.
Returns
Boolean
-
normalizeAlignmentOptions( configuredOptions ) → Array.<AlignmentFormat>
Brings the configuration to the common form, an array of objects.
Parameters
configuredOptions : Array.<(String | AlignmentFormat)>
Alignment plugin configuration.
Returns
Array.<AlignmentFormat>
Normalized object holding the configuration.