Module

alignment/utils

@ckeditor/ckeditor5-alignment/src/utils

module

Filtering

Constants

  • supportedOptions

    static

    The list of supported alignment options:

    • 'left',
    • 'right',
    • 'center',
    • 'justify'

Functions

  • isDefault( alignment, locale ) → Boolean

    static

    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

    static

    Checks whether the passed option is supported by AlignmentEditing.

    Parameters

    option : String

    The option value to check.

    Returns

    Boolean