ContextWatchdogItemConfiguration
interface
The watchdog item configuration interface.
Properties
module:watchdog/contextwatchdog~ContextWatchdogItemConfiguration#configAn editor configuration.
module:watchdog/contextwatchdog~ContextWatchdogItemConfiguration#creatorA function that initializes the item (the editor). The function takes editor initialization arguments and should return a promise. For example:
( el, config ) => ClassicEditor.create( el, config ).destructor : ( editor: Editor ) => Promise<unknown> | undefinedmodule:watchdog/contextwatchdog~ContextWatchdogItemConfiguration#destructorA function that destroys the item instance (the editor). The function takes an item and should return a promise. For example:
editor => editor.destroy()id : stringmodule:watchdog/contextwatchdog~ContextWatchdogItemConfiguration#idid A unique item identificator.
sourceElementOrData : string | HTMLElementmodule:watchdog/contextwatchdog~ContextWatchdogItemConfiguration#sourceElementOrDataThe source element or data that will be passed as the first argument to the
Editor.create()method.type : 'editor'module:watchdog/contextwatchdog~ContextWatchdogItemConfiguration#typeThe type of the item to create. At the moment, only
'editor'is supported.