Module

heading/utils

@ckeditor/ckeditor5-heading/src/utils

module

Filtering

Functions

  • getLocalizedOptions( editor ) → Array.<HeadingOption>

    static

    Returns heading options as defined in config.heading.options but processed to consider editor localization, i.e. to display HeadingOption in the correct language.

    Note: The reason behind this method is that there's no way to use t when the user config is defined because the editor does not exist yet.

    Parameters

    editor : Editor

    Returns

    Array.<HeadingOption>

    .