rich_text_editor.custom_styles - Initialization - Question Editor API

Question Editor API Initialization

custom_styles

An array of extra styles to include in the styles dropdown.

Values

Attribute path rich_text_editor.custom_styles

Type array[CustomStyle]

Type definitions

  • CustomStyle object

    • element string

      The element to wrap content with inside the editor when the style is applied (eg. "em", "strong", "blockquote"). Defaults to "span".

    • element_class string

      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.

    • label string

      The name of the style as shown in the dropdown.

    • is_container_style boolean

      If set to true, the style will be treated as a container style. This only works for div elements.

Related articles

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.