Skip to main content
Version: 1.0.4

WYSIWYG

A rich Markdown editor with a live split source/preview. It exposes the authored Markdown on its value, so it is bindable and usable as a form field.

The WYSIWYG component as it renders with its default settings.The WYSIWYG component as it renders with its default settings.

Reach for it when you need:

  • Authoring a shift report or work instruction on-screen
  • A rich-text field inside a Form

Component name: WYSIWYG · Category: Input

In the palette: Rich Markdown editor (live split source/preview). Exposes the authored markdown on its value — bindable, and usable as a form field.

Properties

Any property can be bound to a tag, another component's property, or a query.

PropertyTypeDefaultDescription
valuestring""The authored Markdown text. Bindable (two-way) — bind a tag/param to seed or capture the content.
modeenumlivelive = split source | preview; edit = source only; preview = rendered only. Options: live · edit · preview.
placeholderstringWrite Markdown…
titlestringWYSIWYG
showTitlebooleantrue
titleSizenumber13
hideToolbarbooleanfalseHide the formatting toolbar for a cleaner, compact editor.
disabledbooleanfalseRead-only: renders the markdown as preview, no editing.
stylestyle{}Custom CSS properties

Events

Attach event actions to these in the Event Manager.

EventLabelGroupPayload
clickClickMouseThe DOM event.
dblclickDouble clickMouseThe DOM event.
contextmenuRight clickMouseThe DOM event.
mouseenterMouse enterMouseThe DOM event.
mouseleaveMouse leaveMouseThe DOM event.
Right-click behaves differently in the Designer

contextmenu fires your configured actions at runtime only — in LiveView and in preview. On the Designer canvas the right-click is captured to open the Event Manager, so testing it there will not run your actions. Test right-click in preview.

Notes

Pair it with Markdown to display what was authored.