Tuesday, 17 September 2013

Activate TinyMCE Popup only with Media_Buttons True?

Activate TinyMCE Popup only with Media_Buttons True?

I'm running Wordpress and TinyMCE in Front-End.
I have one button that opens popup window but it only words with
media_buttons TRUE. But i want to hide media_buttons. Thanks in advance.
Here is my code:
<?php
// quick tags/buttons :
link,em,strong,block,del,ins,img,ul,li,ol,code,more,spell,close,fullscreen
// editor styles
$qt = '';
if( $this->options[ 'wpcc_edit_in_html' ] ) $qt = array( 'buttons' =>
'strong,em,block,del,ul,ol,li,spell,close' );
else {
$qt = FALSE;
add_filter( 'wp_default_editor', create_function( '', 'return
"tinymce";' ) ); // force visual editor
}
$editor_settings = array(
'theme_advanced_blockformats' => array( 'h2','h3','p' ),
'wpautop' => true,
'media_buttons' => false,
'tinymce' => array(
'theme_advanced_buttons1' =>
'bold,italic,blockquote,strikethrough,bullist,numlist,spellchecker,|,undo,redo,|,mygallery_button',
'theme_advanced_buttons2' => '',
'theme_advanced_buttons3' => '',
'theme_advanced_buttons4' => ''
),
'quicktags' => $qt
);

No comments:

Post a Comment