Reputation: 1008
I'm developing a custom plugin in Wordpress. I also have the TinyMCE Advanced Wordpress plugin activated and working.
I created a normal HTML textarea, and converted it into a TinyMCE WYSIWYG editor, using the class="theEditor"
attribute. The problem is, it's Wordpress' own TinyMCE implementation, and NOT the TinyMCE Advanced plugin's implementation, which means I miss out on all its features, including the (most important for my purposes) "stop removing <p>
and <br>
tags" option.
How do I make the textarea trigger TinyMCE Advanced?
Upvotes: 2
Views: 3525
Reputation: 428
You should have a look at these two articles:
And check the the_editor (/wp-includes/general-template.php -> line 1771) and the wp_tiny_mce (/wp-admin/includes/post.php -> line 1377) functions too.
These links are dead, but can be reached in the internet archive here:
Upvotes: 1