Renders the built-in Kademi content editor page, the rich editor used to edit a page's content in place. Created via ViewsBuilder.contentEditorView() from server-side JS and returned from a controller when the request should be answered with the editor rather than the page itself. Rendering is delegated to ContentEditorPage, which builds the editor around the resource being rendered and the request parameters, and the response is always sent as text/html with a UTF-8 charset.

Group: Views

Implements: View


Properties

PropertyReturnsDescription
contentTypeStringThe content type sent with the response, always HTML with a UTF-8 charset.
descriptionStringShort, user-facing label for this view, always "Content editor".

Methods

render(CommonResource page, OutputStream out, Range range, Map<String,String> params, String contentType)

Returns: void

Renders the content editor page for the given resource to the response.

ParameterDescription
pagethe resource being edited, which the editor is built around
outthe stream the editor HTML is written to
rangenot used by this view; the whole page is always written
paramsrequest parameters, passed to the editor to configure it
contentTypenot used by this view; getContentType() supplies the response content type

getDescription()

Returns: String

Short, user-facing label for this view, always "Content editor".

getContentType()

Returns: String

The content type sent with the response, always HTML with a UTF-8 charset.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.