public interface I_CmsEditorHandler
You can define the class of your own editor handler in the OpenCms XML configuration files. changing the <class> subnode of the system node <editorhandler> to another value. The class you enter must implement this interface to obtain the URI of the displayed editor.
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getEditorUri(CmsObject cms,
java.lang.String resourceType,
java.lang.String userAgent,
boolean loadDefault)
Returns the editor URI which will be used for the selected resource type.
|
java.lang.String |
getEditorUri(java.lang.String resource,
CmsJspActionElement jsp)
Returns the editor URI which will be used for the selected resource in the OpenCms VFS to the editor selector class.
|
java.lang.String getEditorUri(CmsObject cms, java.lang.String resourceType, java.lang.String userAgent, boolean loadDefault)
cms
- the cms contextresourceType
- the resource type nameuserAgent
- the user agent headerloadDefault
- true
to force the default editorjava.lang.String getEditorUri(java.lang.String resource, CmsJspActionElement jsp) throws CmsException
resource
- the selected resourcejsp
- the CmsJspActionElementnull
if resource is not editableCmsException
- if something goes wrong