- See the CK editor user guide for how to work with this editor.
- See the CK editor API reference for available config values.
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, thePanes 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”)
WhenhasAttachments 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
TheCK 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.