Whoops, have update the url to netspell, sorry about that (doh).
Must admit that I'm not all that up to date on, and havent started to look at MVC yet. In theory the plugin should work fine under any version of the framework although it was written for a 1.1 web app, from what I've read the .aspx will pretty much have to be re-written to get it to work under mvc. Might be an interesting weekend project right there..
I have been, up until now using the other method of integrating netspell but I felt this way was a little bit tidier and ment I didnt need to have to rebuild the editor each time a new version was released..
Got it working on MVC. Simply add a view and copies the SpellCheck.aspx there and create a controller to point at the view respectively. (e.g. SpellCheckController.cs |> //method to call the view: public ActionResult FCKEditorSpellCheck() { return View("SpellCheck"); } )
Then change the fckplugin.js to point at the SpellCheckController. var NetSpellCommand=new FCKDialogCommand( 'Check Spelling', 'Check Spelling', '/FCKEditor/FCKEditorSpellCheck', 410, 425 ) ;
Problem: if "fckeditor" directory is located in the root of the web server it doesn't work. The popup to check spelling appears but with a progress bar. It can't load SpellCheck.aspx. I have moved "fckeditor" to my ASP.NET application and it works fine. Now, I am getting a JavaScript error: "permission denied". It happens only in Internet Explorer.
terrence wrote:Thanks, it works almost perfectly. Great work!
Problem: if "fckeditor" directory is located in the root of the web server it doesn't work. The popup to check spelling appears but with a progress bar. It can't load SpellCheck.aspx. I have moved "fckeditor" to my ASP.NET application and it works fine. Now, I am getting a JavaScript error: "permission denied". It happens only in Internet Explorer.
I have already solved the problem with the error "permission denied". Finally, I have changed the javascript file of FCKeditor that was causing the exception.
I spent a good long time trying to get NetSpell to work with FCK Editor. Luckily for me (and hopefully for you as well) I was able to get it to work. Please see the attached ZIP file as it has all of the information you need. Please read the "README" document first after unzipping.
I was able to create a "plugin" for Netspell so its installation will be similar to installing other plugins within FCK Editor (with maybe a couple more steps).
This file also takes care of the "permission denied" issue by only calling the "FCK.SetHTML()" function one time instead of every time a word was changed.
Also note that to save space in the ZIP file the only dictionary included is "US" - but I suppose one could download one of the other languages via the Netspell website.
Enjoy - I hope this saves you all a bunch of time. Feel free to distribute wherever you like.
Re: FCKeditor & NetSpell plugin (asp.net)
http://www.loresoft.com/Applications/NetSpell
http://nlakkakula.wordpress.com/2008/06 ... fckeditor/
Re: FCKeditor & NetSpell plugin (asp.net)
C:\DOCUME~1\XXXUser\LOCALS~1\Temp\mciby6md.aspx could not be saved, because the source file could not be read.
http://www.loresoft.com/Applications/Ne ... fault.aspx
I can get your plugin working in Asp.net webform but not asp.net MVC.
Re: FCKeditor & NetSpell plugin (asp.net)
Must admit that I'm not all that up to date on, and havent started to look at MVC yet. In theory the plugin should work fine under any version of the framework although it was written for a 1.1 web app, from what I've read the .aspx will pretty much have to be re-written to get it to work under mvc. Might be an interesting weekend project right there..
I have been, up until now using the other method of integrating netspell but I felt this way was a little bit tidier and ment I didnt need to have to rebuild the editor each time a new version was released..
Anyway, hope it helps..
Matt
Re: FCKeditor & NetSpell plugin (asp.net)
Got it working on MVC.
Simply add a view and copies the SpellCheck.aspx there and create a controller to point at the view respectively.
(e.g. SpellCheckController.cs
|> //method to call the view:
public ActionResult FCKEditorSpellCheck()
{
return View("SpellCheck");
} )
Then change the fckplugin.js to point at the SpellCheckController.
var NetSpellCommand=new FCKDialogCommand( 'Check Spelling',
'Check Spelling',
'/FCKEditor/FCKEditorSpellCheck', 410, 425 ) ;
thx,
George
Re: FCKeditor & NetSpell plugin (asp.net)
Problem: if "fckeditor" directory is located in the root of the web server it doesn't work. The popup to check spelling appears but with a progress bar. It can't load SpellCheck.aspx. I have moved "fckeditor" to my ASP.NET application and it works fine. Now, I am getting a JavaScript error: "permission denied". It happens only in Internet Explorer.
Re: FCKeditor & NetSpell plugin (asp.net)
http://server/fckeditor
Re: FCKeditor & NetSpell plugin (asp.net)
I have already solved the problem with the error "permission denied". Finally, I have changed the javascript file of FCKeditor that was causing the exception.
*** File: fckeditorcode_ie.js ***
- Originally:
- Changed: (I have formatted the line to debug) the change is the bold part, just " && (e.number!=-2146828218)".
The modified file is attached.
Cheers
Attachments:
Re: FCKeditor & NetSpell plugin (asp.net)
I was able to create a "plugin" for Netspell so its installation will be similar to installing other plugins within FCK Editor (with maybe a couple more steps).
This file also takes care of the "permission denied" issue by only calling the "FCK.SetHTML()" function one time instead of every time a word was changed.
Also note that to save space in the ZIP file the only dictionary included is "US" - but I suppose one could download one of the other languages via the Netspell website.
Enjoy - I hope this saves you all a bunch of time. Feel free to distribute wherever you like.
Attachments:
Re: FCKeditor & NetSpell plugin (asp.net)
Enjoy!
Attachments:
Re: FCKeditor & NetSpell plugin (asp.net)
Re: FCKeditor & NetSpell plugin (asp.net)
Thanks!