Don't miss out Virtual Happy Hour today (April 26).

Try our conversational search powered by Generative AI!

TinyMCE issue

Vote:
 

Hi,

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

#44176
Oct 04, 2010 16:19
Vote:
 

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.

#44177
Oct 04, 2010 17:19
Vote:
 

The code snippet here:

http://tech-rash.blogspot.com/2010/09/using-dynamic-content-controls-for.html

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. 

#44178
Oct 04, 2010 17:27
Vote:
 

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

http://world.episerver.com/Blogs/Anders-Hattestad/Dates/2010/8/Preview-on-dynamic-content/

#44186
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.