Field type
wysiwyg
Backwards-compat alias for richtext. Same Tiptap-backed editor, same stored HTML shape. Kept so existing fields configs using "type": "wysiwyg" continue to work; new fields should use richtext.
Type: wysiwyg · Stored attribute type: string
Stored value
string — HTML, same as richtext
Supports
- All
richtextfeatures (bold, italic, lists, links, image insert, headings, three display modes)
Config options
| Option | Type | Default | Description |
|---|---|---|---|
headingLevels | number[] | [2, 3, 4] | Which heading levels appear in the block-type select. |
allowImages | boolean | true | Show the insert-image toolbar button. |
display | string — "inline" | "popover" | "modal" | Force a specific display mode. |
Gotchas
- Historically backed by TinyMCE/
wp_editor(). Now a thin alias forrichtext— Tiptap renders both. Stored HTML round-trips cleanly, so the rename is transparent. - For new fields prefer
richtext—wysiwygexists for back-compat only.
Example
{ "id": "ctrl_body",
"type": "wysiwyg",
"label": "Body",
"attributeKey": "body",
"parentPanelId": "panel" }Every field also takes the keys common to all fields.