Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Edit mode removes class in ContentArea rendering


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".

Nov 23, 2012 14:53

EditContainerClass fixed it

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.