I have added a meta box in the page edit section:
add_meta_box('custom_section_box', 'Sections', array($this, 'section_box'), 'page','normal','high');
Within the box, there is a wp_editor call:
$tinymce_options = array('plugins' => "table,lists,link,textcolor,hr", 'toolbar1'=>"fontsizeselect,forecolor,backcolor,bold,italic,underline,strikethrough,alignleft,aligncenter,alignright,alignjustify",'toolbar2'=>"blockquote,hr,table,bullist,numlist,undo,redo,link,unlink");
$editor_config= array('teeny'=>true, 'textarea_rows'=>10, 'editor_class'=>'csec_text', 'textarea_name'=>'csec_body', 'wpautop'=>false, 'tinymce'=>$tinymce_options);
wp_editor(html_entity_decode(stripslashes($vals['content'])), 'csec_body', $editor_config);
Everything is working fine, but when I add a gallery through the media button, it displays the gallery shortcode only (like [gallery link="file" ids="759,760,761"]). There is no usual display of the gallery as in the normal page editor with edit/delete buttons.
I had tried to add the do_shortcode to pass the value in wp_editor, but that displays the full html instead. Also other shortcodes are rendered as html.
Can you please help?
$editor_config
too