Tries to get the recommended plugin (invokes has prior to getting it) and returns it, if available.
has
If missing, undefined is returned and prior to that optional onMissing gets invoked. onMissing may be used, to log relevant effects.
undefined
onMissing
the editor instance to get the plugin from
identifier for the plugin (by name or constructor)
optional callback invoked with plugin name, if plugin is missing. Defaults to some generic message on not found plugin at debug level.
Optional
Tries to get the recommended plugin (invokes
hasprior to getting it) and returns it, if available.If missing,
undefinedis returned and prior to that optionalonMissinggets invoked.onMissingmay be used, to log relevant effects.Param: editor
the editor instance to get the plugin from
Param: key
identifier for the plugin (by name or constructor)
Param: onMissing
optional callback invoked with plugin name, if plugin is missing. Defaults to some generic message on not found plugin at debug level.