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 java.lang.String |
ATTR_EDITEDTEXT
Known attribute name for storing the user edited text inside a session or a page context
|
static java.lang.String |
EDITOR_PLAIN
Known name for the plain wikimarkup editor.
|
static java.lang.String |
EDITOR_PREVIEW
Known name for the preview editor component.
|
static java.lang.String |
PARA_EDITOR
Parameter for changing editors at run-time
|
static java.lang.String |
PROP_EDITORTYPE
The property name for setting the editor.
|
static java.lang.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 java.lang.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.
|
java.lang.String[] |
getEditorList()
Returns a list of editors as Strings of editor names.
|
java.lang.String |
getEditorName(Context context)
Returns an editor for the current context.
|
java.lang.String |
getEditorPath(Context context)
Convenience method for getting the path to the editor JSP file.
|
checkCompatibility, getModuleInfo, modulesinitializestatic final java.lang.String PROP_EDITORTYPE
static final java.lang.String PARA_EDITOR
static final java.lang.String EDITOR_PLAIN
static final java.lang.String EDITOR_PREVIEW
static final java.lang.String REQ_EDITEDTEXT
static final java.lang.String ATTR_EDITEDTEXT
java.lang.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.java.lang.String[] getEditorList()
java.lang.String getEditorPath(Context context)
context - WikiContext from where the editor name is retrieved.static java.lang.String getEditedText(javax.servlet.jsp.PageContext ctx)
ctx - the JSP page contextCopyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.