Moussa Sarr Moussa Sarr - 2 months ago 12x
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 !!!


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

p {margin: 0; padding: 0;}