PluginSystem
plugin.PluginSystem
Jodit plugin system
Example
Jodit.plugins.add('emoji2', {
init() {
alert('emoji Inited2')
},
destruct() {}
});
Implements
constructor
new PluginSystem(): PluginSystem
Returns
size
get size(): number
Returns
number
Implementation of
Defined in
src/core/plugin/plugin-system.ts#47
add
add(name, plugin): void
Add plugin in store
Parameters
| Name | Type |
|---|---|
name |
string |
plugin |
PluginType |
Returns
void
Implementation of
Defined in
src/core/plugin/plugin-system.ts#54
get
get(name): void | Function | typeof IPlugin | IPlugin<IViewBased<IViewOptions>> | PluginFunction
Get plugin from store
Parameters
| Name | Type |
|---|---|
name |
string |
Returns
void | Function | typeof IPlugin | IPlugin<IViewBased<IViewOptions>> | PluginFunction
Implementation of
Defined in
src/core/plugin/plugin-system.ts#62
remove
remove(name): void
Remove plugin from store
Parameters
| Name | Type |
|---|---|
name |
string |
Returns
void
Implementation of
Defined in
src/core/plugin/plugin-system.ts#69
__init
__init(jodit): void
Public method for async init all plugins
Parameters
| Name | Type |
|---|---|
jodit |
IJodit |
Returns
void
Defined in
src/core/plugin/plugin-system.ts#90
wait
wait(name): Promise<void>
Returns the promise to wait for the plugin to load.
Parameters
| Name | Type |
|---|---|
name |
string |
Returns
Promise<void>
Implementation of
Defined in
jodit/src/core/plugin/plugin-system.ts:163