Completed
Last Updated: 10 Apr 2019 15:28 by ADMIN
Michael
Created on: 19 Mar 2019 08:44
Category: UI for ASP.NET AJAX
Type: Bug Report
0
Extra Lines on Enter key press in Firefox when RadEditor is placed in a not initially selected RadWizard step
Bug introduced in build 2019.1.115+ causes 3 extra <p>&nbsp;</p> when user presses Enter key in FireFox.  Happens when Editor is in a Wizard with more than one step.  Bug does not occur in builds prior to 2019.1.115.

Try this to reproduce:

 <telerik:RadWizard runat="server" ID="rwMain" BorderStyle="Solid" BorderColor="LightGray" BorderWidth="1px" RenderMode="Lightweight" DisplayNavigationButtons="True">
        <WizardSteps>
            <telerik:RadWizardStep ID="RadWizardStep2" Title="Content Template" StepType="Step">
                <h1>hello!</h1>
            </telerik:RadWizardStep>
            <telerik:RadWizardStep ID="RadWizardStep3" Title="Content Editor" StepType="Step">
                <telerik:RadEditor ID="ContentEditor" runat="server" RenderMode="Lightweight"></telerik:RadEditor>
            </telerik:RadWizardStep>
        </WizardSteps>
    </telerik:RadWizard>
2 comments
ADMIN
Rumen
Posted on: 10 Apr 2019 15:28
Hi everyone,

The problem is fixed in the Latest Internal Build 2019.1.409. Please download it from https://www.telerik.com/account/product-download?product=RCAJAX, give it a try and let us know how it works.


Regards,
Rumen
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
ADMIN
Rumen
Posted on: 19 Mar 2019 09:08
Hi Michael,

Thank you for reporting this problem! 

I managed to research and fixed it so it will not exist in R2 2019 due in May.

As a temporary solution for the current version you can apply the following code:

<script>
    Telerik.Web.UI.Editor.DefaultToolAdapter.prototype.repaint = function () {
        if (Telerik.Web.Browser.ff && Telerik.Web.Browser.version >= 62) {
            var editor = this.get_editor();
            editor._disposeEvents();
            editor._contentAreaCommonInitialization();
        }
    }
</script>


Here is my test page:
<%@ Page Language="C#" AutoEventWireup="true" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="Sc1" runat="server"></asp:ScriptManager>
        <telerik:RadWizard runat="server" ID="rwMain" BorderStyle="Solid" BorderColor="LightGray" BorderWidth="1px" RenderMode="Lightweight" DisplayNavigationButtons="True">
            <WizardSteps>
                <telerik:RadWizardStep ID="RadWizardStep2" Title="Content Template" StepType="Step">
                    <h1>hello!</h1>
                    <telerik:RadEditor ID="RadEditor1" runat="server" RenderMode="Lightweight"></telerik:RadEditor>
                </telerik:RadWizardStep>
                <telerik:RadWizardStep ID="RadWizardStep3" Title="Content Editor" StepType="Step">
                    <telerik:RadEditor ID="ContentEditor" runat="server" RenderMode="Lightweight"></telerik:RadEditor>
                </telerik:RadWizardStep>
            </WizardSteps>
        </telerik:RadWizard>
        <script>
            Telerik.Web.UI.Editor.DefaultToolAdapter.prototype.repaint = function () {
                if (Telerik.Web.Browser.ff && Telerik.Web.Browser.version >= 62) {
                    var editor = this.get_editor();
                    editor._disposeEvents();
                    editor._contentAreaCommonInitialization();
                }
            }
        </script>
    </form>
</body>
</html>

Please test it and let me know how it works on your side.

I also updated your Telerik points for reporting the problem! Thank you once again.

Best regards,
Rumen
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.