Tag Info

New answers tagged

0

Oh, this was quite easy. I had used: $args = array("textarea_name" => "wpet_options[txt]", 'default_editor' => 'text'); wp_editor( 'xxx', "wpet_options[txt]", $args ); But what I really wanted was: $post = get_post( 117, 'OBJECT' ); wp_editor( $post, 'editor' ); This page explains more: ...


0

adding this filter below your code you can delete fullscreen button or another with teeny=>true, deleting items from $buttons array (fullscreen is 14 counting from left to right from 0 ) first remove from $settings 'tinymce'=> array( 'theme_advanced_disable' => 'fullscreen' ) and add filter add_filter( "teeny_mce_buttons", ...


3

As you noted, setting quicktags to false removes the "visual" and "text" tabs. So, to leave the tabs you need to set quicktags to true and remove the buttons: $settings = array( 'quicktags' => array( 'buttons' => ',' ) ); wp_editor($input, 'editor_name', $settings); To have this in all quicktags ...


0

Yes as per @Nibbr Web Development, TinyMCE editor IDs cannot have brackets. Which is the html field ID, so what we will do is create a different but similiar name for the ID attribute and still use our desired name in for the text area field name, like so. $content = $options['textareafield']; // editor_id cannot have brackets and must be lowercase ...


0

If you are calling wp_editor() in your metabox, one of the arguments that you can pass is 'media_buttons.'


0

I required a lot more code to get it working, and also was getting a javascript error: Deprecated TinyMCE API call: <target>.onKeyUp.add(..) This was caused by a wordpress upgrade from 3.x to 4. So I had to clear my browser cache first. Firstly I added a callback to teh wp filter tiny_mce_before_init in my functions.php file, this allowed to me to add ...



Top 50 recent answers are included