I have spent a bunch of time to add ieSpell support to version 2.0, but to no avail. I guess part of the problem is that the FCKeditor does not use a text box for rendering the text. Does anyone know how I might integrate ieSpell into the FCKeditor?
Thu, 01/06/2005 - 17:56
#1

RE: ieSpell Support
http://www.w3.org/TR/html4/loose.dtd
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled Document</title> <script src="/speller/spellChecker.js"></script> <script type="text/javascript"> var oEditor = window.parent.InnerDialogLoaded() ; <!-- function sct() { document.form2.spellText.value = oEditor.FCK.EditorDocument.body.innerHTML; var speller = new spellChecker( document.form2.spellText); speller.openChecker(); } function setContent() { oEditor.FCK.EditorDocument.body.innerHTML = document.form2.spellText.value; } //--> </script> <body onLoad="sct();"> <form method="post" name="form2" action="spellerpage.html"> <input type="hidden" name="spellText"> <input type="button" onclick="setContent();" value="Update Content" /> </form> </body> </html>RE: ieSpell Support
RE: ieSpell Support
<!------- SNIP --------->
<html> <head> <script src="speller/spellChecker.js"></script> <script type="text/javascript"> var oFCKeditor; <!-- function sct() { var oFCK; if("<?=$client_browser?>" != "ie") oFCK = blog_text___Frame.contentWindow; else oFCK = blog_text___Frame; oFCKeditor.Value = oFCK.FCK.EditorDocument.body.innerHTML ; document.FormName.spellText.value = oFCKeditor.Value; var speller = new spellChecker( document.FormName.spellText); speller.openChecker(); } function setContent() { var oFCK; if("<?=$client_browser?>" != "ie") oFCK = blog_text___Frame.contentWindow; else oFCK = blog_text___Frame; oFCK.FCK.EditorDocument.body.innerHTML = document.FormName.spellText.value; oFCKeditor.Value = document.FormName.spellText.value; } //--> </script> </head> <body> <script type="text/javascript" src="/FCKeditor/fckeditor.js"></script> <script type="text/javascript"> // oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. oFCKeditor = new FCKeditor( 'blog_text' ) ; oFCKeditor.BasePath = 'FCKeditor/' ; oFCKeditor.Value = <?=$strVal?>; //alert(FCKConfig.ToolbarSets["Blog"]); oFCKeditor.ToolbarSet = "Blog"; oFCKeditor.Create() ; </script> <input type="hidden" name="spellText"> <input type="button" onclick="sct();" value="Spell Check" /> </body> </html><!------- SNIP --------->
The paths to spellerpages and FCKEditor will likely have to be modified for your setup.
RE: ieSpell Support
I'll see if I can't plug-in-ize this, for aesthetic purposes.