WpRichText
WP RichText Render a rich contenteditable input, providing users with the option to format the content. RichText Docs. Note, this is a simple (dumb) input and only allows for bolding and italics via keyboard shortcuts. There are no controls. Also honours paragraph spacing. Useful for when you need multiple paragraphs but no list formatting options.
Value
Returns string
$value = fx_get_meta('id');
Example
'id' => [
'type' => 'wp-rich-text',
'title' => 'Some content',
'description' => 'Some content',
'className' => 'my-class-name',
'defaultChecked' => false,
'label' => 'Enter something below',
'multiline' => true,
],
Props
className
Metabox class name
type: string
description
type: string
label
Label that appears as a placeholder
type: string
multiline
Creates new paragraphs on enter
type: bool
defaultValue: true
title
Metabox title
type: string