Reputation: 1691
I am trying to upgrade to TinyMCE 4 and am having issues with manually starting the spellchecker. It seems that this doesn't work any more:
tinyMCE.execCommand('mceSpellCheck',false,'');
Any suggestions?
Also, in reviewing the JS code, it appears that "mceSpellCheck" was removed from the spellcheck js file. So, how do you call those methods directly anymore in TinyMCE 4?
Upvotes: 2
Views: 443
Reputation:
In the latest TinyMCE 4.2.6 that should work:
tinymce.init({
//... code and setup here
setup: function(editor) {
editor.on('init',function(e) {
editor.execCommand('mceSpellCheck');
});
},
//... and more here perhaps
});
Upvotes: 1