Variations & Customisation

FieldWysiwygStandard

The Standard variation includes the following:

  • Editing actions such as copy & paste
  • Formatting such as bold, italic, underline, strikethrough, indentation
  • General HTML elements such as links, tables, images, horizontal rules, etc.
  • Insert images and other media (integrates with Nexus Media Library)

Preview of the Standard variations

FieldWysiwygBasic

The Basic variation provides only a limited number of formatting options:

  • Bold
  • Italic
  • Underline
  • Links

Preview of the Basic variation

FieldWysiwygSingleLine

The Single Line variation provides the same formatting options as the Basic variation, but content is not wrapped in <p> or <div> tags - ideal for headings (<h1>, etc.).

If the user presses enter, it will insert a <br> tag instead of <p>.

Custom

To create a custom variation, create a custom component that extends FieldWysiwygBase in the same way that the variations linked above do.

See the comments in the Base variation for details of what can be overridden and links to the relevant TinyMCE documentation.