Fix broken textSelection test case in IE. All textSelection tests are passing in...
authorRoan Kattouw <catrope@users.mediawiki.org>
Thu, 28 Jul 2011 05:57:29 +0000 (05:57 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Thu, 28 Jul 2011 05:57:29 +0000 (05:57 +0000)
resources/jquery/jquery.textSelection.js

index 49286d7..7c39927 100644 (file)
@@ -163,6 +163,7 @@ encapsulateSelection: function( options ) {
                                range3.moveEnd( 'character', 1 );
                                if ( range3.text != "\r" && range3.text != "\n" && range3.text != "" ) {
                                        insertText += "\n";
+                                       post += "\n";
                                }
                        }