Skip to main content

WpEditor

A TinyMCE editor similar to the wp-editor content.

Value

Returns string

$value = fx_get_meta('id');

Example

'id' => [
'type' => 'wp-editor',
'className' => 'my-class-name',
'title' => 'Some Content',
],

Props

className

Metabox class name

type: string

label

Optional textfield label

type: string

quicktags

quicktags arguments

type: object

defaultValue: { buttons: 'strong,em,del,ul,ol,li,close' }

tinymce

tinymce arguments

type: object

defaultValue: { wpautop: false, plugins: 'charmap,colorpicker,hr,lists,paste,tabfocus,textcolor,fullscreen,wordpress,wpautoresize,wpeditimage,wpemoji,wpgallery,wplink,wptextpattern', toolbar1: 'formatselect bold italic | bullist numlist | blockquote | alignleft aligncenter alignright | link unlink | wp_more | spellchecker', }

title

Metabox title

type: string