public abstract class Plugin extends Enum
Note: Only basic functionality is implemented, more work is needed.
Modifier | Constructor and Description |
---|---|
protected |
Plugin(String name) |
protected |
Plugin(String name,
String pluginPath) |
Modifier and Type | Method and Description |
---|---|
protected void |
define(StringBuffer buffer,
String key,
String value) |
protected void |
definePluginExtensions(StringBuffer buffer)
Override this in specific plugins if the plugin needs to be able to add something to the
javascript.
|
protected void |
definePluginSettings(StringBuffer buffer)
Define configuration settings for this plugin.
|
String |
getPluginPath() |
void |
setPluginPath(String pluginPath) |
protected Plugin(String name)
public String getPluginPath()
protected void definePluginExtensions(StringBuffer buffer)
NOTE: This should NOT be used to configure settings for the plugin. The output is added AFTER the tinyMCE.init().
buffer
- The output buffer which the plugin should append to, if they have some additional
javascript.protected void definePluginSettings(StringBuffer buffer)
I.e. the "paste" plugin can be configured with different settings such as: "paste_callback" etc.
buffer
- buffer to append tosettingKey
- The setting to set. I.e. "paste_callback"value
- The value to set on the setting. I.e. "myCallbackFunction"protected void define(StringBuffer buffer, String key, String value)
public void setPluginPath(String pluginPath)
Copyright © 2015. All rights reserved.