Hi Göran,
Starting in 2025 Q3, the Apply Class tool will apply the selected CSS class to img tags, regardless of the class name chosen in the dropdown. This update ensures compatibility with both img elements and commonly used CSS classes.
Regards,
Rumen
Progress Telerik
Hi Göran,
I investigated the case in detail and found out that this was an intentional change in 2013.
After a survey and interviews with customers, it appeared that we have to modernize the editor inline commands and the reported behavior was one of them. Let me explain how the ApplyClass command works as of Q2 2013 till now:
img.imageRedText {
color: red;
}
<img alt="" src="/aspnet-ajax/Editor/images/UserDir/Marketing/Tokyo.png" class="blueBorder" />
.commonBorder {
border: 1px solid blue;
}
<span class="redText"><img alt="" src="/aspnet-ajax/Editor/images/UserDir/Marketing/Tokyo.png" /></span>
<asp:ScriptManager runat="server" ID="ScriptManager1"></asp:ScriptManager>
<script type="text/javascript" src='<%= Page.ClientScript.GetWebResourceUrl(typeof(RadEditor), "Telerik.Web.UI.Editor.RadEditor.Commands.LegacyCommands.js") %>'></script>
<script type="text/javascript" src="<%= Page.ClientScript.GetWebResourceUrl(typeof(RadEditor), "Telerik.Web.UI.Editor.RadEditor.Commands.LegacyInlineCommands.js") %>"></script>
Regards,
Rumen
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.