Support » Fixing WordPress » Cusotmize tinymce buttons

  • Resolved gottfrieds

    (@gottfrieds)



    I use the following shortcode to demonstrate my problem:

    function txarea() {
    ?>	<form method="post" action="http://huppenbroich.de/spd-simmerath/admin-tools/textarea">
    <?php
    wp_editor( '', 'tx_name', array(
        'media_buttons' => false,
        'textarea_name' => 'nachricht',
        'textarea_rows' => 10,
      	'quicktags' => false,
      	'tinymce' => array(
      		"theme_advanced_buttons1" => "bold,italic,underline,emoticons,bullist,numlist,aligncenter,alignjustify,hr,image,link,unlink,undo,redo",
    		"theme_advanced_buttons2" => "cut,paste,copy,outdent,indent,pastetext,removeformat,table,wp_help,searchreplace",
    		)
    	)
    ); 
    ?>
    		<button style="padding: 10px;" type="submit">Text senden</button>
    	</form>
    <?php
    }
    add_shortcode('textarea', 'txarea');

    I want to offer users a minimized version of TinyMCE with fewer buttons. The form uses unfortunenatly the standard Buttons. Where is my mistake??? Who can help me????

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.