Hello,
I've found a solution for you, however it involves a customization of the
\CMSModules\Content\Controls\Dialogs\Properties\HTMLMediaProperties.ascx file, where you move the
Class property from the
Advanced tab to the
General tab and make the
Align property to be hidden and change its label to
Align instead, so the end of the General section would look like this:
<tr style="display:none">
<td style="white-space: nowrap;">
<cms:LocalizedLabel ID="lblAlign" runat="server" EnableViewState="false" DisplayColon="true"
ResourceString="dialogs.image.alignlabel" />
</td>
<td>
<asp:DropDownList ID="drpAlign" runat="server" Width="105" />
</td>
</tr>
<tr>
<td>
<cms:LocalizedLabel ID="lblImageAdvStyleClass" runat="server" EnableViewState="false"
ResourceString="dialogs.image.alignlabel" DisplayColon="true" />
</td>
<td>
<asp:DropDownList ID="txtImageAdvClass" runat="server" Width="105" />
</td>
</tr>
After this you need to fill this dropdown with your css class values in the
OnInit method:
// Load align dropdown with values
txtImageAdvClass.Items.Add(new ListItem("", ""));
txtImageAdvClass.Items.Add(new ListItem("floatleft", "left"));
txtImageAdvClass.Items.Add(new ListItem("floatright", "right"));
Best regards,
Jan Hermann