public interface EditorManager extends ModuleManager, Initializable
ini/jspwiki_module.xml:
<modules>
<editor name="myeditor">
<author>Janne Jalkanen</author>
<script>foo.js</script>
<stylesheet>foo.css</stylesheet>
<path>editors/myeditor.jsp</path>
</editor>
</modules>
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_EDITEDTEXT
Known attribute name for storing the user edited text inside a session or a page context
|
static String |
EDITOR_PLAIN
Known name for the plain wikimarkup editor.
|
static String |
EDITOR_PREVIEW
Known name for the preview editor component.
|
static String |
PARA_EDITOR
Parameter for changing editors at run-time
|
static String |
PROP_EDITORTYPE
The property name for setting the editor.
|
static String |
REQ_EDITEDTEXT
Known attribute name for storing the user edited text inside a HTTP parameter.
|
PLUGIN_RESOURCE_LOCATION| Modifier and Type | Method and Description |
|---|---|
static String |
getEditedText(javax.servlet.jsp.PageContext ctx)
Convenience function which examines the current context and attempts to figure out whether the edited text is in the HTTP
request parameters or somewhere in the session.
|
String[] |
getEditorList()
Returns a list of editors as Strings of editor names.
|
String |
getEditorName(Context context)
Returns an editor for the current context.
|
String |
getEditorPath(Context context)
Convenience method for getting the path to the editor JSP file.
|
checkCompatibility, getModuleInfo, modulesinitializestatic final String PROP_EDITORTYPE
static final String PARA_EDITOR
static final String EDITOR_PLAIN
static final String EDITOR_PREVIEW
static final String REQ_EDITEDTEXT
static final String ATTR_EDITEDTEXT
String getEditorName(Context context)
Determines the editor to use by the following order of conditions: 1. Editor set in User Preferences 2. Default Editor set in jspwiki.properties
For the PREVIEW context, this method returns the "preview" editor.
context - The context that is chosen.String[] getEditorList()
String getEditorPath(Context context)
context - WikiContext from where the editor name is retrieved.static String getEditedText(javax.servlet.jsp.PageContext ctx)
ctx - the JSP page contextCopyright © 2001-2020 The Apache Software Foundation. All rights reserved.