Is there a way to add TinyMCE into my own WordPress plugin?
I have a textarea in my back end script and want to make this area into a TinyMCE WYSIWYG editable field.
I had a similar problem, and class="theEditor"
didn't help me either (at first). I was using a custom post type which didn't include the default editor (ie the supports
argument didn't include 'editor'
).
That meant WordPress didn't include the TinyMCE code. Once I added
add_action( 'admin_print_footer_scripts', 'wp_tiny_mce', 25 );
to my functions.php (based on the code in the the_editor
function in general-template.php) it worked fine (with class="theEditor"
).