How to display TinyMCE without wp_editor()

I’m trying to enable WordPress’ tinyMCE editor for a front-end textarea, from a plugin’s pro version. I temporarily solved the issue in a bogus way: In free version: wp_editor( $details_val, //content ‘pre-details’, //editor ID array(‘tinymce’=>false), ); Then from the pro version, with a filter hook, made the ‘tinymce’ value to true. Ha ha ha… Need … Read more

TinyMCE 4.x : How to customize toolbar on wp_editor()

Since upgrading to WordPress 3.9 (which includes TinyMCE 4.x), I have problems customizing the editor, displayed via wp_editor() In the example below, I want to disable the ‘fullscreen’ button, but this doesn’t work. $settings = array( ‘textarea_name’ => ‘description’, ‘quicktags’ => false, ‘media_buttons’ => false, ‘teeny’ => true, ‘tinymce’=> array( ‘theme_advanced_disable’ => ‘fullscreen’ ) ); … Read more

wp_editor adds HTML entities to the content

I’m building my theme options page and I want to use WordPress TinyMCE editor here, so I’m calling wp_editor. But when I’m saving data some entities are added to the content for example, lets say I want to add image: <img class=”” title=”” src=”https://wordpress.stackexchange.com/questions/50674/path_to_image” alt=”” /> Thats what I’ve got after clicking save: <img title=”\&quot;\&quot;” … Read more

Load wp_editor via ajax [duplicate]

This question already has answers here: Closed 9 years ago. Possible Duplicate: How to load wp_editor() through AJAX/jQuery I know that this has been asked before but it has not been answered fully or accurately or descriptively. I know how to load the wp_editor on page load like this: <?php wp_editor( $content, ‘bio’, $settings = … Read more

Sanitize content from wp_editor

I built a custom post type where we can find a standard textarea/tinymce generated by wp_editor() and I’m facing an issue for the saving part. If I save the content with the following code : update_post_meta( $post_id, $prefix.’content’, $_POST[‘content’] ); Everything is working fine but there is no security (sanitization, validation etc…) If I save … Read more