Try our conversational search powered by Generative AI!

Edit mode removes class in ContentArea rendering

Vote:
 

When rendering a ContentArea with the CssClass property set, the class is removed when editing the page which breaks the layout. This code renders, as expected <ul class="slides"><li> etc when browsing the site.

@Html.PropertyFor(x => x.PromoArea, new { CssClass = "slides", CustomTag = "ul", ChildrenCustomTagName = "li" })

But in edit mode the class "slides" is replaced with "epi-editContainer".

#63662
Nov 23, 2012 14:53
Vote:
 

EditContainerClass fixed it

#63663
Nov 23, 2012 15: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.