Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any working spellchecker plugin for TinyMCE

I am using spellchecker from Google in my web application. It was working great but for some reason Google has stopped or removed their service and now it's not working. Here is the link for the SOAP API - https://developers.google.com/soap-search/?csw=1#1_3.

I tried with some other components like

  1. http://www.jspell.com/tinymcespellchecker.html (it's require some intallation on the server and have some issues related to typing + some PHP code to execute)

  2. http://jquery-spellchecker.badsyntax.co/tinymce.html (it's require some PHP code to execute and giving error "the method is not allowed with "POST")

Both aren't working well as expected.

I had also posted an question previously but don't get any reply there Tinymce: Spellchecker is not working.

like image 560
nrsharma Avatar asked Nov 27 '22 11:11

nrsharma


2 Answers

Why don't you use the browser spellchecking? There is not much you will need to do to make it work. The browser needs to have a dictionary of your language installed (AddOn) and additionally you will need to set the attribute spellcheck of the editor body to true.

tinyMCE.init({
   ...
   setup : function(ed) {
      ed.onInit.add(function(ed, evt) { //since tinymce4 use ed.on('init', function(evt){...
          ed.getBody().setAttribute('spellcheck', true);
      });
   }
});

This is far faster than a remote spellchecker approach (using something like Google spellchecker or an other aspell server).

like image 166
Thariama Avatar answered Dec 05 '22 01:12

Thariama


The spellchecker plugin included in the 4.XX download WILL NOT WORK. That plugin relied on Google's spell checking API which has been permanently discontinued, disabled, removed. I too recommend using the browser-based spellchecker. After that you can remove all code for spellchecker.

tinymce.init({
    selector: '.mceEditor',
    browser_spellcheck: true,
    contextmenu: false,
});
like image 29
user2378769 Avatar answered Dec 05 '22 00:12

user2378769