MCPcopy Index your code
hub / github.com/tinymce/tinymce / hasPlugin

Method hasPlugin

modules/tinymce/src/core/main/ts/api/Editor.ts:480–487  ·  view source on GitHub ↗

* Checks that the plugin is in the editor configuration and can optionally check if the plugin has been loaded. * * @method hasPlugin * @param {String} name The name of the plugin, as specified for the TinyMCE `plugins` option. * @param {Boolean} loaded If `true`, will also check that th

(name: string, loaded?: boolean)

Source from the content-addressed store, hash-verified

478 * tinymce.activeEditor.hasPlugin('table');
479 */
480 public hasPlugin(name: string, loaded?: boolean): boolean {
481 const hasPlugin = Arr.contains(Options.getPlugins(this), name);
482 if (hasPlugin) {
483 return loaded ? PluginManager.get(name) !== undefined : true;
484 } else {
485 return false;
486 }
487 }
488
489 /**
490 * Dispatches out a onNodeChange event to all observers. This method should be called when you

Callers 10

checkWithoutManagerFunction · 0.80
checkWithManagerFunction · 0.80
registerFunction · 0.80
registerFunction · 0.80
renderRightContainerFunction · 0.80
getTextComponentsFunction · 0.80
linkFunction · 0.80
unlinkFunction · 0.80
Plugin.tsFile · 0.80
registerFunction · 0.80

Calls 1

getMethod · 0.65

Tested by

no test coverage detected