An optional name of the plugin. If set, the plugin will be available in
get
by its
name and its constructor. If not, then only by its constructor.
The name should reflect the constructor name.
To keep the plugin class definition tight, it is recommended to define this property as a static getter:
export default class ImageCaption {
static get pluginName() {
return 'ImageCaption';
}
}
Note: The native Function.name
property could not be used to keep the plugin name because
it will be mangled during code minification.
Naming a plugin is necessary to enable removing it through the
config.removePlugins
option.