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
| Property | Returns | Description |
|---|---|---|
| contentType | String | The content type sent with the response, always HTML with a UTF-8 charset. |
| description | String | Short, 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.
| Parameter | Description |
|---|---|
page | the resource being edited, which the editor is built around |
out | the stream the editor HTML is written to |
range | not used by this view; the whole page is always written |
params | request parameters, passed to the editor to configure it |
contentType | not 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.