
public class EditorManager extends ModuleManager
Janne Jalkanen foo.css editors/myeditor.jsp
| 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.
|
m_engine, PLUGIN_RESOURCE_LOCATION| Constructor and Description |
|---|
EditorManager(WikiEngine engine) |
| 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(WikiContext context)
Returns an editor for the current context.
|
String |
getEditorPath(WikiContext context)
Convenience method for getting the path to the editor JSP file.
|
org.apache.wiki.ui.EditorManager.WikiEditorInfo |
getModuleInfo(String moduleName)
Returns the
WikiModuleInfo information about the provided moduleName. |
void |
initialize(Properties props)
Initializes the EditorManager.
|
Collection |
modules()
Returns a collection of modules currently managed by this ModuleManager.
|
checkCompatibility, modulespublic static final String PROP_EDITORTYPE
public static final String PARA_EDITOR
public static final String EDITOR_PLAIN
public static final String EDITOR_PREVIEW
public static final String REQ_EDITEDTEXT
public static final String ATTR_EDITEDTEXT
public EditorManager(WikiEngine engine)
public void initialize(Properties props)
props - Properties for setup.public String getEditorName(WikiContext 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.public String[] getEditorList()
public String getEditorPath(WikiContext context)
context - public static String getEditedText(javax.servlet.jsp.PageContext ctx)
ctx - the JSP page contextpublic Collection modules()
modules in class ModuleManagerpublic org.apache.wiki.ui.EditorManager.WikiEditorInfo getModuleInfo(String moduleName)
WikiModuleInfo information about the provided moduleName.getModuleInfo in class ModuleManagerCopyright © 2001-2018 The Apache Software Foundation. All rights reserved.