Editor Inside Wizard Causes Extra Lines in FF w/ 2019 Builds

2 posts, 0 answers
  1. Michael
    Michael avatar
    1 posts
    Member since:
    Jun 2018

    Posted 14 Mar Link to this post

    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>

    Hope you can fix it. 
    Thank you!!

  2. Rumen
    Admin
    Rumen avatar
    14011 posts

    Posted 19 Mar Link to this post

    Hi Michael,

    Thank you for reporting this problem! This is really appreciated!

    I investigated the issue, fixed it and the fix will appear in the upcoming R2 2019 major release due in the beginning of May. It will be also featured in the Latest Internal Build due in 1-2 weeks.

    I also logged the problem at the feedback portal -> Extra Lines on Enter key press in Firefox when RadEditor is placed in a not initially selected RadWizard step.

    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>

    As a small token of gratitude I updated your Telerik points!

    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.
Back to Top