comparison wiki/htdocs/applets/FCKeditor/editor/dialog/fck_spellerpages/spellerpages/spellchecker.html @ 4326:07862b0663fd

merge moin/1.8 repo
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 22 Aug 2008 22:58:18 +0200
parents 77665d8e2254 6089ade226fb
children
comparison
equal deleted inserted replaced
4325:b6b6979b4813 4326:07862b0663fd
24 24
25 // encodeForPost 25 // encodeForPost
26 function encodeForPost( str ) { 26 function encodeForPost( str ) {
27 var s = new String( str ); 27 var s = new String( str );
28 s = encodeURIComponent( s ); 28 s = encodeURIComponent( s );
29 // additionally encode single quotes to evade any PHP 29 // additionally encode single quotes to evade any PHP
30 // magic_quotes_gpc setting (it inserts escape characters and 30 // magic_quotes_gpc setting (it inserts escape characters and
31 // therefore skews the btye positions of misspelled words) 31 // therefore skews the btye positions of misspelled words)
32 return s.replace( /\'/g, '%27' ); 32 return s.replace( /\'/g, '%27' );
33 } 33 }
34 34
35 // post the text area data to the script that populates the speller 35 // post the text area data to the script that populates the speller