I am using tinymce 4.0.1 and it automatically adds p tags when you either start typing or hit enter. How can I dynamically remove these p tags and then reinsert the content into the editor.
you need to add the following line to your init statement
forced_root_block : ""
So, your complete code will be like this:
<script>tinymce.init({forced_root_block : "",selector:'textarea'});</script>