X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fenterkey%2Fplugin.js;h=8a38916510fd3c8e7fb5c7e6e32e35e18a897239;hb=a272c66d841421f8bf933c16535bdcde1c4649fc;hp=c7e8d4e8c944fcc47b52e3b8d6b6c960a7d8440d;hpb=e73319a12b56100b29ef456fd74114fe5519e01c;p=ckeditor.git
diff --git a/_source/plugins/enterkey/plugin.js b/_source/plugins/enterkey/plugin.js
index c7e8d4e..8a38916 100644
--- a/_source/plugins/enterkey/plugin.js
+++ b/_source/plugins/enterkey/plugin.js
@@ -1,5 +1,5 @@
/*
-Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
@@ -315,9 +315,9 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
isPre = ( startBlockTag == 'pre' );
- // Gecko prefers
as line-break inside
(#4711). - if ( isPre && !CKEDITOR.env.gecko ) - lineBreak = doc.createText( CKEDITOR.env.ie ? '\r' : '\n' ); + // IE<8 prefers text node as line-break inside of(#4711). + if ( startBlockTag == 'pre' && CKEDITOR.env.ie && CKEDITOR.env.version < 8 ) + lineBreak = doc.createText( '\r' ); else lineBreak = doc.createElement( 'br' );