Completed
Last Updated: 14 Sep 2021 11:15 by ADMIN
Release Q2 2014
ADMIN
Ianko
Created on: 29 May 2014 10:21
Category: Editor
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. 

To workaround this issue you can incorporate the JavaScript code provided in this example markup:

<telerik:RadEditor runat="server" ID="RadEditor1" NewLineMode="P">
</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