layout {
row {
CTRLTextEditor MYSWC@200.300:myeditor {
controloptions = expression {
dictionary dict = {
toolbarGroups: "basicstyles,paragraph",
// allow headings and links
extraAllowedContent: "h1; h2; h3; h4; a",
height: "10em"
};
return dict;
}
}
}
}
Possible control options are:
toolbarGroups (string)
:
Defines which button groups are available to edit the text. Multiple values are separated with ",".
Currently available values are:
toolbarGroups (array)
:
Defines which button groups are available to edit the text. This parameter is passed through to CKEditor.
[{ name: "/" }]
acts as a line break.removeButtons (string)
:
List of toolbar button names that must not be rendered. Multiple values are separated with ",".allowedContent (string)
:
Allowed content rules. Default is defined by the available tools in the toolbar.
The value "all" defines all valid HTML. It is possible to reduce the possibilities with
disallowedContent
.allowColorEditing (boolean)
:
Allows colorbutton-plugin in editor
https://ckeditor.com/cke4/addon/colorbuttonextraAllowedContent (string)
:
This option makes it possible to set additional allowed content rules.disallowedContent (string)
:
Disallowed content rules. They have precedence over allowed content rules.
Default for read only mode is "iframe; style; script; *[on*]"
.width (string)
:
Defines the width of the editor area. Default is 100%. If the content exceeds the width of the editor
area scrollbars are shown.height (string)
:
Defines the height of the editor area. Default height is defined by the content. If the content exceeds
the height of the editor area scrollbars are shown.FSCTEXTEDITOR@1.1001:CTRLTextEditor()
Additional Information