November Happy Hour will be moved to Thursday December 5th.
Hi all,
I use this code to add css class to tag
new { CustomTag = "ul", CssClass = "menu" }
Thus, in view mode I get desired result (<ul class="menu">), but in edit mode it works different:
<ul class="epi-editContainer" data-epi-property-rendersettings="{"childrenCustomTagName":"li","tag":"span5","customTag":"ul","cssClass":"menu"}" data-epi-use-mvc="True" data-epi-property-name="Members">
Therefore in edit mode it looks as a mess.
Also as I understand "CssClass" works only if "CustomTag" is defined. But what to do if I want to add css class to image element. The following code doesn't work:
@Html.PropertyFor(m => m.CurrentPage.Image, new { CssClass = "alignleft" })
Hi all,
I use this code to add css class to tag
new { CustomTag = "ul", CssClass = "menu" }
Thus, in view mode I get desired result (<ul class="menu">), but in edit mode it works different:
<ul class="epi-editContainer" data-epi-property-rendersettings="{"childrenCustomTagName":"li","tag":"span5","customTag":"ul","cssClass":"menu"}" data-epi-use-mvc="True" data-epi-property-name="Members">
Therefore in edit mode it looks as a mess.
Also as I understand "CssClass" works only if "CustomTag" is defined. But what to do if I want to add css class to image element. The following code doesn't work:
@Html.PropertyFor(m => m.CurrentPage.Image, new { CssClass = "alignleft" })