Editor configuration handler

It stores the editor configuration and the editor extensions. It also allows to inject new extensions into an editor.

Implements

Constructors

Properties

_baseConfig: Record<string, any>
_config: Record<string, any>
_configChanged: Signal<ExtensionsHandler, Record<string, any>> = ...
_configurableBuilderMap: Map<string, IConfigurableExtension<any>>
_disposed: Signal<ExtensionsHandler, void> = ...
_immutables: Set<string> = ...
_isDisposed: boolean = false

Accessors

Methods

  • Whether the editor has an extension for the identifier.

    Parameters

    • key: string

      Extension unique identifier

    Returns boolean

    Extension existence

  • Set a base config option for the editor.

    You will need to reconfigure the editor extensions by listening to IExtensionsHandler.configChanged.

    Parameters

    Returns void

  • Set config options for the editor.

    You will need to reconfigure the editor extensions by listening to EditorHandler.configChanged.

    This method is preferred when setting several options. The options are set within an operation, which only performs the costly update at the end, and not after every option is set.

    Parameters

    Returns void