Module

alignment/utils

@ckeditor/ckeditor5-alignment/src/utils

module

Filtering

Constants

Functions

  • isDefault( alignment, locale ) → boolean

    Checks whether alignment is the default one considering the direction of the editor content.

    Parameters

    alignment : string

    The name of the alignment to check.

    locale : Locale

    The locale instance.

    Returns

    boolean
  • 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.