+++ /dev/null
-\r
-<script>\r
-\r
-var wordWindow = null;\r
-var controlWindow = null;\r
-\r
-function init_spell( spellerWindow ) {\r
-\r
- if( spellerWindow ) {\r
- if( spellerWindow.windowType == "wordWindow" ) {\r
- wordWindow = spellerWindow;\r
- } else if ( spellerWindow.windowType == "controlWindow" ) {\r
- controlWindow = spellerWindow;\r
- }\r
- }\r
-\r
- if( controlWindow && wordWindow ) {\r
- // populate the speller object and start it off!\r
- var speller = opener.speller;\r
- wordWindow.speller = speller;\r
- speller.startCheck( wordWindow, controlWindow );\r
- }\r
-}\r
-\r
-// encodeForPost\r
-function encodeForPost( str ) {\r
- var s = new String( str );\r
- s = encodeURIComponent( s );\r
- // additionally encode single quotes to evade any PHP\r
- // magic_quotes_gpc setting (it inserts escape characters and\r
- // therefore skews the btye positions of misspelled words)\r
- return s.replace( /\'/g, '%27' );\r
-}\r
-\r
-// post the text area data to the script that populates the speller\r
-function postWords() {\r
- var bodyDoc = window.frames[0].document;\r
- bodyDoc.open();\r
- bodyDoc.write('<html>');\r
- bodyDoc.write('<meta http-equiv="Content-Type" content="text/html; charset=utf-8">');\r
- bodyDoc.write('<link rel="stylesheet" type="text/css" href="spellerStyle.css"/>');\r
- if (opener) {\r
- var speller = opener.speller;\r
- bodyDoc.write('<body class="normalText" onLoad="document.forms[0].submit();">');\r
- bodyDoc.write('<p>' + window.parent.FCKLang.DlgSpellProgress + '<\/p>'); // by FredCK\r
- bodyDoc.write('<form action="'+speller.spellCheckScript+'" method="post">');\r
- for( var i = 0; i < speller.textInputs.length; i++ ) {\r
- bodyDoc.write('<input type="hidden" name="textinputs[]" value="'+encodeForPost(speller.textInputs[i].value)+'">');\r
- }\r
- bodyDoc.write('<\/form>');\r
- bodyDoc.write('<\/body>');\r
- } else {\r
- bodyDoc.write('<body class="normalText">');\r
- bodyDoc.write('<p><b>This page cannot be displayed<\/b><\/p><p>The window was not opened from another window.<\/p>');\r
- bodyDoc.write('<\/body>');\r
- }\r
- bodyDoc.write('<\/html>');\r
- bodyDoc.close();\r
-}\r
-</script>\r
-\r
-<html>\r
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r
-<head>\r
-<title>Speller Pages</title>\r
-</head>\r
-<frameset rows="*,201" onLoad="postWords();">\r
-<frame src="blank.html">\r
-<frame src="controls.html">\r
-</frameset>\r
-</html>\r