IE would destroy my formatting whenever it exited the
spell checker (it would remove all end of lines
characters, and would add a space at the end of every
line).
I did the following to fix it (although this is
probably just hackish):
function unescapeForSpellCheck(str)
{
var checkSpelling = str;
// Get rid of all the DHTML
that we added.
+ if (window.ActiveXObject) {
+ var regex = /<br>/gi;
+ checkSpelling =
checkSpelling.replace(regex,"\n");
+ var regex = /\r\n/;
+ checkSpelling =
checkSpelling.replace(regex,"");
+ var regex = / \n/gi;
+ checkSpelling =
checkSpelling.replace(regex,"\n");
+ }
var regex = /<.*?>/gi;
checkSpelling =
checkSpelling.replace(regex,"");
Logged In: NO
Now this is making sence...
Logged In: YES
user_id=246574
Thanks, seems to have fixed it here.