Index: /CKEditor/trunk/_source/plugins/enterkey/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/enterkey/plugin.js (revision 6614)
+++ /CKEditor/trunk/_source/plugins/enterkey/plugin.js (revision 6615)
@@ -276,27 +276,25 @@
range.insertNode( lineBreak );
- // A text node is required by Gecko only to make the cursor blink.
- // We need some text inside of it, so the bogus
is properly
- // created.
- if ( !CKEDITOR.env.ie )
- doc.createText( '\ufeff' ).insertAfter( lineBreak );
-
- // If we are at the end of a block, we must be sure the bogus node is available in that block.
- if ( isEndOfBlock && !CKEDITOR.env.ie )
- lineBreak.getParent().appendBogus();
-
- // Now we can remove the text node contents, so the caret doesn't
- // stop on it.
- if ( !CKEDITOR.env.ie )
- lineBreak.getNext().$.nodeValue = '';
// IE has different behavior regarding position.
if ( CKEDITOR.env.ie )
range.setStartAt( lineBreak, CKEDITOR.POSITION_AFTER_END );
else
+ {
+ // A text node is required by Gecko only to make the cursor blink.
+ // We need some text inside of it, so the bogus
is properly
+ // created.
+ doc.createText( '\ufeff' ).insertAfter( lineBreak );
+
+ // If we are at the end of a block, we must be sure the bogus node is available in that block.
+ if ( isEndOfBlock )
+ lineBreak.getParent().appendBogus();
+
+ // Now we can remove the text node contents, so the caret doesn't
+ // stop on it.
+ lineBreak.getNext().$.nodeValue = '';
+
range.setStartAt( lineBreak.getNext(), CKEDITOR.POSITION_AFTER_START );
- // Scroll into view, for non IE.
- if ( !CKEDITOR.env.ie )
- {
+ // Scroll into view, for non IE.
var dummy = null;
@@ -374,5 +372,4 @@
}
-
function getRange( editor )
{