Index: _source/tests/plugins/enterkey/enterkey.html
===================================================================
--- _source/tests/plugins/enterkey/enterkey.html Wed Jul 15 02:05:42 CST 2009
+++ _source/tests/plugins/enterkey/enterkey.html Wed Jul 15 02:05:42 CST 2009
@@ -0,0 +1,153 @@
+
+
+
+ Plugin: Enterkey
+
+
+
+
+
+
+
+
+
+
Index: _source/plugins/selection/plugin.js
===================================================================
--- _source/plugins/selection/plugin.js (revision 3848)
+++ _source/plugins/selection/plugin.js Wed Jul 15 01:19:22 CST 2009
@@ -491,7 +491,10 @@
}
testRange.setEndPoint( 'StartToStart', range );
- var distance = testRange.text.length;
+ // IE report line break as CRLF with range.text but
+ // only LF with textnode.nodeValue, normalize them to avoid
+ // breaking character counting logic below. (#3949)
+ var distance = testRange.text.replace( /(\r\n|\r)/g, '\n' ).length;
while ( distance > 0 )
distance -= siblings[ --i ].nodeValue.length;
Index: CHANGES.html
===================================================================
--- CHANGES.html (revision 3894)
+++ CHANGES.html Wed Jul 15 01:57:36 CST 2009
@@ -130,6 +130,7 @@
#3742 : Fixed wrong dialog layout for dialogs without tab bar in IE RTL mode .
#3671 : Fixed body fixing should be applied to the real type under fake elements.
#3836 : Fixed remove list in enterMode=BR will merge sibling text to one line.
+ #3949 : Fixed enterKey within pre-formatted text introduce wrong line-break.
CKEditor 3.0 RC