PluginSystem
plugin.PluginSystem
Jodit plugin system
Example
Jodit.plugins.add('emoji2', {
init() {
alert('emoji Inited2')
},
destruct() {}
});
Implements
constructor
new PluginSystem(): PluginSystem
Returns
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#50
get
get(name
): void
| PluginType
Get plugin from store
Parameters
Name | Type |
---|---|
name |
string |
Returns
void
| PluginType
Implementation of
Defined in
src/core/plugin/plugin-system.ts#58
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#65
__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#86
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:156