Try our conversational search powered by Generative AI!

<p> wrappping tags in TinyMCE

Vote:
 

Hello,

I want to raise an old discussion about the automatically added </p> wrapping tags for every content in XhtmlString area.

http://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=43969

Is there any more delicate way for excluding that in EPiServer, version 7.5?

Thanks in advance!

#82214
Mar 07, 2014 15:00
Vote:
 

Hi, a developer could easily implement a "property setting" with a separate editor configuration where the editor behaves differently.

However, the only case where P elements are bad is when you want a webeditor to edit a one-line text block where a P element is semantically wrong. In those cases it's easier to strip the P elements out in template code.

Classic "too much space after the line" cases are much better solved from CSS instead of "destroying" the semantics of the document by not allowing P elements.

#82295
Mar 10, 2014 11:23
* 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.