Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TinyMCE 4.0.5 spell check not working

Tags:

tinymce

I am currently using TinyMCE 4.0.5 with jQuery package and noticed that spell check is not working

i am using a simple set up

tinymce.init({
         selector: "textarea",
         plugins : "spellchecker",
});

With this set up i can see the option 'SpellCheck' under 'Tools' but when i click on 'SpellCheck' it throws an error 'Error: GENERAL'

Also there is an error in the error log "File does not exist: PATH/tinymce/js/tinymce/plugins/spellchecker//

but i can see the following file in the above path PATH/tinymce/js/tinymce/plugins/spellchecker/plugin.min.js

like image 769
Daptal Ms Avatar asked Sep 05 '13 01:09

Daptal Ms


2 Answers

According to what I've found elsewhere, the spellchecker plugin was powered by Google service - which has been retired. So at this time there does not appear to be an integrated TinyMCE spellchecker solution.

However, you CAN enable the browser's built-in spellchecker by doing the following:

tinymce.init({
    browser_spellcheck : true,
});

Be sure to remove spellchecker from your toolbar and your plugins list.

like image 138
wloescher Avatar answered Sep 28 '22 03:09

wloescher


Ran into this and solution is even more weird then problem itself: the thing is, that when plugin misses spellchecker_rpc_url parameter, it simply queries the same directory he's in, that's why we get

File does not exist: PATH/tinymce/js/tinymce/plugins/spellchecker/

Set spellchecker_rpc_url parameter to your script URL and this error message will be gone.

like image 33
David Jashi Avatar answered Sep 28 '22 03:09

David Jashi