EditorWatchdogConfiguration (watchdog)
@ckeditor/ckeditor5-watchdog/src/contextwatchdog
typedef
Object
The editor watchdog configuration interface specifies how editors should be created and destroyed.
Filtering
Properties
-
config : ObjectAn editor configuration.
-
creator : functionA 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 : functionA function that destroys the item instance (the editor). The function takes an item and should return a promise. For example:
editor => editor.destroy() -
id : StringA unique item identificator.
-
sourceElementOrData : String | HTMLElementThe source element or data that will be passed as the first argument to the
Editor.create()method. -
type : 'editor'The type of the item to create. At the moment, only
'editor'is supported.