Last Updated: 14 Jun 2016 07:46 by ADMIN
Created on: 31 May 2016 05:39
Category: Editor
Type: Bug Report
FontSize tool does not apply changes when font-size inline style is applied in FF and IE
Having a font/span tag with applied inline font-size style cannot be formatted by FontSize tool.  

This is a possible workaround that removes font-size inline style when size attribute is to be added:

<telerik:RadEditor runat="server" ID="RadEditor1" OnClientCommandExecuting="OnClientCommandExecuting">
            <telerik:EditorTool Name="FontSize" />
       <p><span style="font-size:15px;">text</span></p>

    function OnClientCommandExecuting(editor, args) {
        var command = args.get_commandName();
        if (command === "FontSize") {
            $telerik.$(editor.getSelectedElement()).css("font-size", "");
1 comment
Posted on: 14 Jun 2016 07:46
Behind the FontSize tool stands a browser command that cannot be modified in order fit this scenario. 

The HTML output of this scenario is expected and normal when the FontSize tool is used. 

In case the HTML inserted utilizes font-size CSS property as inline style, the RealFontSize tool is recommended to be used.