The Editor field creates a full Wordpress tinyMCE content Editor. It is very useful to create extra content areas.
Map Usage:
array(
'name' => 'my-text',
'label' => 'Field Label',
'type' => 'editor', // USAGE TEXTAREA_HTML TYPE
'value' => base64_encode( 'DEFAULT-CONTENT' ), // remove this if you do not need a default content
'description' => 'Field Description',
)
Example:
Register a new shortcode with filed type:
editor
add_map(
array(
// 1st shortcode element
'my_shortcode' => array(
'name' => 'My Shortcode',
'description' => 'This is my shortcode',
'icon' => 'my-class-icon',
'category' => 'Content',
'params' => array(
//1st field
array(
'name' => 'my-text',
'label' => 'Field Label',
'type' => 'editor', // USAGE TEXTAREA_HTML TYPE
'value' => base64_encode( 'DEFAULT-CONTENT' ), // remove this if you do not need a default content
'description' => 'Field Description',
),
//2nd field
)
),
// 2nd shortcode element
) // End Arrays
);
} // end my_wp_init()
?>
Read more