Sign up (with export icon)

heading/utils

Api-module icon module

Functions

  • Chevron-right icon

    getLocalizedOptions( editor ) → Array<HeadingOption>
    internal

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

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

    Parameters

    editor : Editor

    Returns

    Array<HeadingOption>