From: Roan Kattouw Date: Thu, 28 Jul 2011 05:57:29 +0000 (+0000) Subject: Fix broken textSelection test case in IE. All textSelection tests are passing in... X-Git-Tag: 1.31.0-rc.0~28574 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=14dbb7617ff6c0346d6e04ba6c9605067f037b1c;p=lhc%2Fweb%2Fwiklou.git Fix broken textSelection test case in IE. All textSelection tests are passing in IE now (at least on my local machine) --- diff --git a/resources/jquery/jquery.textSelection.js b/resources/jquery/jquery.textSelection.js index 49286d713e..7c39927cbf 100644 --- a/resources/jquery/jquery.textSelection.js +++ b/resources/jquery/jquery.textSelection.js @@ -163,6 +163,7 @@ encapsulateSelection: function( options ) { range3.moveEnd( 'character', 1 ); if ( range3.text != "\r" && range3.text != "\n" && range3.text != "" ) { insertText += "\n"; + post += "\n"; } }