Skip to content
mattheu edited this page Apr 28, 2013 · 19 revisions

A WYSIWYG editor field.

WYSIWYG Field

Args

  • id (string) (required)
  • type 'wysiwyg' (string) (required)
  • name (string) Field display name. Used as field label.
  • desc (string) Field description. Displayed below label.
  • options (array) wp_editor settings. See WordPress codex.
  • repeatable (bool)
  • cols (int) [1-12]

Example Usage

array( 
	'id'   => 'example-field-wysiwyg', 
	'name' => 'A WYSIWYG editor field', 
	'type' => 'wysiwyg',
	'options' => array(
		'textarea_height' => '200px'
	)

),