Try our conversational search powered by Generative AI!

TinyMCE issue



Another one from me...

Is it possible to stop TinyMCE automatically wrapping text around <p> tags? It seems to default to the paragraph style, and on certain pages, I don't want to return <p> tags in my mark-up.


Any help most appreciated

Oct 04, 2010 16:19

Further to this, I would like it to stop adding <p> tags when ever I add new Dynamic Content Items.

I have  page where I might add several dynamic content items one after each other, but each time I add a new one, it creates a <p> tag around it, which then mucks up the CSS layout.

Oct 04, 2010 17:19

The code snippet here:

Explains how to edit the mark-up before saving to the database. Look at the method that overrides ApplyEditChanges for how to manipulate the mark-up before its saved in the database. 

Oct 04, 2010 17:27

You could also wrap up the content before you display's it with the methods described here

Oct 04, 2010 23:16
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.