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`.

Stored value

string — HTML, same as `richtext`

Supports

  • All `richtext` features (bold, italic, lists, links, image insert, headings, three display modes)

Config options

headingLevelsnumber[]default: "[2, 3, 4]"
Which heading levels appear in the block-type select.
allowImagesbooleandefault: true
Show the insert-image toolbar button.
displaystring — "inline" | "popover" | "modal"
Force a specific display mode.

Example

json
{ "id": "ctrl_body",
  "type": "wysiwyg",
  "label": "Body",
  "attributeKey": "body",
  "parentPanelId": "panel" }

Gotchas

Heads up
Historically backed by TinyMCE/`wp_editor()`. Now a thin alias for `richtext` — Tiptap renders both. Stored HTML round-trips cleanly, so the rename is transparent.
Heads up
For new fields prefer `richtext` — `wysiwyg` exists for back-compat only.