Skip to main content
This element allows you to create HTML-formatted messages. You can insert images, tables, paragraphs, and so on. Learn more:

Configuration

A word about attachments: Naming the attachment element ensures that if showInsertText is true, the attachments will be shown in an Attachments element.

Vertical space

For the editor to fill out the screen vertically, the config variable verticalSpace = rest must be set. If the editor is inside a pane, the Panes element must also have this config variable.

Example

Hide the CK editor toolbar on start-up:

Functions

getFieldValue(“plainText”)

Returns true if the editor has been set up as a plain-text editor.

getFieldValue(“attachments”)

When hasAttachments is true, returns a comma-delimited string of attachment id’s. Example: “25” or “23,24,25”.

setValue(String field)

Sets the content of the editor to value.

setFieldValue(String action, Map values)

toString()

Returns the contents of the editor.

Nesting

The CK editor element must be inside an Element table. Otherwise, it will not fill out the width of the page. This is especially important when the editor is located inside a Pane element together with other elements. Correct nesting: All elements inside the pane are “wrapped” in the element table.