This is the initialization option which determines the rich text editor that will be used by the Question Editor API. All customizable attributes are defined in this object.
Request object key
This object has the following properties which can be configured.
If defined, the rich text editor will display a custom button in it's toolbar.
An array of extra styles to include in the styles dropdown.
Used to set custom font colors.
Used to set font sizes.
If set to true, only custom_styles will be visible in the Styles button.
Can be used to customize the rich text editor's toolbar.
An array of string containing the selectors of the rich text editors with which the custom buttons are to be associated. If this is undefined the buttons will be associated with all rich text editor instances. For array type fields like options, you can either define a selector for a specific entry, e.g.
options, or you can specify a selector targeting the whole array, e.g.
A link to the button icon (Recommended dimensions: 25px by 25px).
The button label.
A unique identifier for the button.
The callback function which is executed when the custom button is clicked.
Call this function to add the custom content to the text editor.
The custom HTML content to be added to the text editor.
The element to wrap content with inside the editor when the style is applied (eg.
"blockquote"). Defaults to
An additional class to be placed on the element surrounding the styled text for custom CSS. It is also the class to be placed on the label in the dropdown, allowing the said label to be styled by custom CSS.
The name of the style as shown in the dropdown.
is_container_style booleanIf set to
true, the style will be treated as a container style. This only works for