Textarea-HTML Field Join KC discussion

Notice: if you want to add more than one editor in one element, please use field "editor" instead http://docs.kingcomposer.com/docs/available-param-types/editor-field/.

The Textarea-HTML field creates a full Wordpress tinyMCE content Editor. It is useful to create extra content areas.

KingComposer Textarea-HTML text

Map Usage:

	'name' => 'content',  // the name must be 'content'
	'label' => 'Field Label',

	'type' => 'textarea_html',  // USAGE TEXTAREA_HTML TYPE

	'value' => 'DEFAULT-CONTENT', // remove this if you do not need a default content 
	'description' => 'Field Description',

How it works?:

[elm attr="value 1" content="value 2"] __the content__ [/elm]

1. The shortcode's structure must be container type
2. Editor content will work through "__the content__" instead attribute "content"


Register a new shortcode with filed type: textarea_html

            // 1st shortcode element
            'my_shortcode' => array(
                'name' => 'My Shortcode',
                'description' => 'This is my shortcode',
                'icon' => 'my-class-icon',
                'category' => 'Content',

                'is_container' => true,  // This field required a container shortcode, 
                                         // the output: [my_shortcode] content [/my_shortcode]

                'params' => array(
                    //1st field
                        'name' => 'content',
                        'label' => 'Content',
                        'type' => 'textarea_html',
                        'value' => 'Sample Content',
                        'admin_label' => true,
                    //2nd field

            // 2nd shortcode element

        ) // End Arrays

} // end my_wp_init()

Read more