alignment/utils
module
Constants
supportedOptions : ReadonlyArray<AlignmentSupportedOption>module:alignment/utils~supportedOptionsThe list of supported alignment options:
'left','right','center','justify'
Functions
isDefault( alignment, locale ) → booleaninternalmodule:alignment/utils~isDefaultChecks whether alignment is the default one considering the direction of the editor content.
Parameters
Returns
boolean
isSupported( option ) → booleaninternalmodule:alignment/utils~isSupportedChecks whether the passed option is supported by
AlignmentEditing.Parameters
option : stringThe option value to check.
Returns
boolean
normalizeAlignmentOptions( configuredOptions ) → Array<AlignmentFormat>internalmodule:alignment/utils~normalizeAlignmentOptionsBrings 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.