Moussa Sarr Moussa Sarr - 1 year ago 85
Ruby Question

How to prevent the <p> tag from wrapping around my input with tinymce in Rails?

By default, the tinymce input gets passed to the DOM as a paragraph tag:

I would like to remove that element wrapper so that tinymce passes exactly what I entered in the text editor.
How do I do that ? Please if you provide a code, can you also let me know where that code gets added ?
Regards !!!

Answer Source

Actually I solved my problem. All I had to do was change the styling for paragraph tag :

p {margin: 0; padding: 0;}
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download