RadEditor backspace key is not working when in Enter New Line mode

1 posts, 0 answers
  1. Shubhada
    Shubhada avatar
    2 posts
    Member since:
    Mar 2012

    Posted 18 May 2016 Link to this post


    I am having issues when I click on Enter key to goto the new line and then when I use BackSpace key it does not work.

    I see that its working in your demo.

    I have the latest Telerik web.ui/design/skin dlls.

    Thanks for your help!


    This is my RadEditor control code


    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />

    <div class="demo-container size-wide">
        <telerik:RadEditor ContentAreaMode="Div" runat="server" ID="RadEditor1" SkinID="DefaultSetOfTools" EditModes="Design" ToolTip="XML Editor"
            Height="515px" CssClass="centered-editor" Width="99%" Skin="WebBlue"  NewLineMode="Br" OnClientPasteHtml="OnClientPasteHtml" StripFormattingOnPaste="NoneSupressCleanMessage" StripFormattingOptions="NoneSupressCleanMessage">
                    <telerik:EditorTool Name="Print" Text="Print" />
                    <telerik:EditorTool Name="Cut" Text="Cut" />
                    <telerik:EditorTool Name="Copy" Text="Copy" />
                    <telerik:EditorTool Name="Zoom" Text="Zoom" />


            <ImageManager ViewPaths="~/Editor/images/UserDir/Marketing,~/Editor/images/UserDir/PublicRelations"

                <telerik:EditorCssClass Name="Red Text" Value=".redText"></telerik:EditorCssClass>
                <telerik:EditorCssClass Name="Table Class" Value=".table"></telerik:EditorCssClass>
                <telerik:EditorCssClass Name="Div Class" Value=".div"></telerik:EditorCssClass>
                <telerik:EditorCssClass Name="Image Class" Value=".image"></telerik:EditorCssClass>
                <telerik:EditorCssClass Name="List Class" Value=".listSquare"></telerik:EditorCssClass>


    function OnClientPasteHtml(editor, args) {
        var commandName = args.get_commandName();
        // Paste command is the one that handles plain paste, e.g., when Ctrl+V is used.
        if (commandName === "Paste") {
            var htmlToBePasted = args.get_value(); // Get the value to be pasted
            // Use Regex to strip <strong>, <em> and <span> tags.
            htmlToBePasted = htmlToBePasted.replace(/^(&nbsp;)+/, '');
            // Set the processed content to the arguments.


Back to Top