Completed
Last Updated: 01 Jun 2021 13:12 by ADMIN
Release Q2 2015
ADMIN
Ianko
Created on: 07 Apr 2014 10:16
Category: Editor
Type: Bug Report
0
Incorrect List nesting is generated when a Paragraph is deleted via backspace key under IE11
When the HTML content is set with nested list elements and an empty paragraph right after the primary list, deleting this empty paragraph will cause the nested list to go outside the list item.

This matter causes an incorrect HTML markup and additionally causes incorrect tool behavior.

Passing trough Design to HTML cures the issue (invoking the content filters) cures the issue, although there are cases where users cannot be prompted to do that.

Using native events to resolve the backspace behavior:

<telerik:RadEditor ID="RadEditor1" runat="server" OnClientLoad="OnClientLoad">
</telerik:RadEditor>

<script type="text/javascript">
    function OnClientLoad(editor, args) {
        editor.attachEventHandler("onkeydown", function (e) {
            if (e.keyCode == 8 && $telerik.isIE10Mode && !$telerik.isIE10) {
                var selElm = editor.getSelectedElement();
                var isCursorInFront = editor.getSelection().getRange().startOffset == 0;
                if (selElm && selElm.nodeName == "P" && isCursorInFront) {
                    editor.attachEventHandler("onkeyup", fixContent);
                }
            }
        });

        var fixContent = function () {
            editor.set_html(editor.get_html(true));
            editor.detachEventHandler("onkeyup", fixContent);
        }
    }
</script>
9 comments
Mattias
Posted on: 14 Apr 2015 14:17
Please can you give us an answer. We are still waiting for a solution.
Thanks
Mattias
Posted on: 09 Feb 2015 12:44
How is the status on this bug? Can you give us an estimate on when this is fixed?

Regards,
Mattias
ADMIN
Ianko
Posted on: 02 Dec 2014 07:58
Hi Mattias, 

The major improvement mentioned is planned, and it is currently on its development stage, i.e., it is being thoroughly researched and the next stage is to be implemented by the dev team and then thoroughly tested by the QA team.

I would like to share, that the task's complexity is high as this is an improvement that should be implemented with great care and proper testing procedures. 

On a side note, there is an additional feedback portal item (http://feedback.telerik.com/Project/108/Feedback/Details/141658) that you can follow for updates related to the the major improvement task. 

Also, once this bug is fixed a comment in this item will be posted with the release version which includes the resolution.

Kind wishes, 
Ianko
Mattias
Posted on: 08 Oct 2014 13:47
Any update for this issue?
Will the status be updated when this issue is fixed and inside a new release?
ADMIN
Ianko
Posted on: 04 Aug 2014 12:39
Hi Mattias,

Due to the complexity of the browser command behavior, this issue is still being investigated. 

The dev team is preparing a general improvement that should fix this, but due to the strict development process of such features I am unable to firmly estimate when this improvement will be live. 

Regards, 
Ianko
Mattias
Posted on: 12 May 2014 07:10
Is there any updates regarding this bug when it will be fixed and in which version the fix will be in?
Mattias
Posted on: 10 Apr 2014 15:28
Unfortunately I have a problem that the cursor jumps to the end of the text after hitting backspade.
Mattias
Posted on: 08 Apr 2014 15:48
deleted by mattias.seemann
Mattias
Posted on: 08 Apr 2014 15:44
I tried this but I get undefined for "startOffset". I tried it in IE11.
Also the $telerik.isIE10 gives me true in IE11.