[Updated] TinyMCE spellchecker plugin with enchant library

TinyMCE (my favourite WYSIWYG editor) comes with a very nice spellchecker plugin. As the supported spellchecking engines were not powerful enough for my needs, I decided to modify the plugin so it supports the enchant library and thus a large number of spellchecking engines.

You can download the EnchantSpell class here. Using it is quite simple:

  1. Install Enchant and a spellchecking engine of your choice. I prefer Hunspell. (see this post for a guide on how to install the newest versions on Ubuntu 8.4)
  2. Install TinyMCE and the TinyMCE Spellchecker (both available here)
  3. Unpack EnchantSpell.php to tiny_mce/plugins/spellchecker/classes
  4. Add $config['general.engine']=’EnchantSpell’; to tiny_mce/plugins/spellchecker/config.php

That’s it. Have fun :-)

[Update: The class is now included in the official release. So there is no need to download it separately anymore.]

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • del.icio.us
  • Facebook
  • Google
  • Slashdot
  • Technorati
  • StumbleUpon

9 Responses to “[Updated] TinyMCE spellchecker plugin with enchant library”


  1. 1 Palak Shah

    I was trying to do by following the steps you mentioned. But I get No Response error with Enchant. and if I use PSPShell in config file I cannot get misspelled words.

    Do I need to build Hunspell? Can you explain steps in detail? Though your information has made me confirmed for making spellchecker in native language using hunspell.

    Thanking you.

    Regards,
    Palak Shah

  2. 2 michel

    Hi. Installing Hunspell and Enchant is described in another post here: http://michel.weimerskirch.net/2008/04/25/php-enchant/

  3. 3 Palak Shah

    Thank you michel.

    I have followed the link you suggested and did all installs in debian.

    I cannot find config.php file in debian and example.html is not showing menus above editor. Whereas I can see all files and structure as expected and can see menu in windows. I can run iespell as well.

    Can you advise regarding the problem or where am I wrong?

    Regards,
    Palak Shah

  4. 4 michel

    You need to install the TinyMCE Spellchecker plugin separately. It is available on the TinyMCE download page. The link is in step 2 of the above description.

  5. 5 Palak

    Done Michel!!! :)
    Thank you. Sorry I tested late coz of Diwali vacation.

    Regards,
    Palak Shah

  6. 6 Palak

    Hi Michel,

    When I don’t have suggestions for wrong spelling on right click I can see please wait… for a while and then nothing is coming up. I think there should be Ignore word and Ignore All.

    Is there problem in editor or I have spoiled? I tried searching on net and tinymce forums for this.

    Regards,
    Palak Shah

  7. 7 michel

    Hi

    Thank you. I reported this in the TinyMCE bug tracker: https://sourceforge.net/tracker2/?func=detail&aid=2271589&group_id=103281&atid=635682

    A solution is included as well. Please add a comment to the bug tracking system if the problem remains. This way other people also benefit from the solution.

    Regards,
    Michel

  8. 8 Palak

    It is working. Ok Michel we can also add a functionality like add word to dictionary(user side) when we can’t find in our dictionary.

    I had that implementation for my desktop application. But here it is bit confusing. Can you give your suggestions on that.

    Regards,
    Palak Shah

  1. 1 TinyMCE spellchecker now with official enchant library at Michel Weimerskirch

Leave a Reply