Sign up (with export icon)

PluginsMap

Api-interface icon interface

Helper type that maps plugin names to their types. It is meant to be extended with module augmentation.

class MyPlugin extends Plugin {
	public static pluginName() {
		return 'MyPlugin' as const;
	}
}

declare module '@ckeditor/ckeditor5-core' {
	interface PluginsMap {
		[ MyPlugin.pluginName ]: MyPlugin;
	}
}

// Returns `MyPlugin`.
const myPlugin = editor.plugins.get( 'MyPlugin' );
Copy code

Properties