Interface

PluginsMap (core)

@ckeditor/ckeditor5-core/src/plugincollection

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' );

Filtering

Properties