Completed
Last Updated: 02 Jul 2014 14:33 by ADMIN
ADMIN
Ianko
Created on: 09 Jun 2014 19:12
Category: UI for ASP.NET AJAX
Type: Bug Report
0
New Line on Enter command is not working as expected under Chrome 35
This bug causes incorrect user behavior. Lists cannot be disconnected with Enter, in some cases user cannot add multiple empty paragraphs. 

For the time being you can resolve the issue by incorporating the following JS code block:

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

<script type="text/javascript">
    var setCursorFn = Telerik.Web.UI.Editor.Utils._setCursorInNode;
    Telerik.Web.UI.Editor.Utils._setCursorInNode = function (cursorElement, container, editor) {
        setCursorFn.call(this, cursorElement, container, editor);
        if ($telerik.isChrome) {
            var selection = editor.getSelection();
            var range = selection.getRange();
            if (!range.collapsed) {
                range.collapse();
                selection.selectRange(range);
            }
        }
    }
</script>
0 comments