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
Ok well here is a start at least. I made a plugin that opens a new window (if I knew how to run code I'd do that, but anyway). I use spellerpages, but I'd bet what you'd need to do is similar... as this is you need to click the update button after the spellcheck is done, but someone who knows code can fix that...
I'd like to do what someone sug'd earlier and design a spell 'connector' for FCKeditor, something standard, easy to configure for whatever spell you use... someday...
here is the file (weird... just got it working last night...):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
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.