Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spell checker doesnt play well with multiple tiny_mce instances on the same page #58

Open
batoure opened this issue Sep 30, 2013 · 1 comment

Comments

@batoure
Copy link

batoure commented Sep 30, 2013

spelling

I have been successfully using the jquery spellchecker plugin in several other areas of a site. However when I loaded several of them onto a page things quickly went bonkers. If you check the spelling in more than one box at a time the checker quickly gets confused and will freeze or unfreeze the pane on both boxes instead of the one you are working with.

I would guess that the issue at hand is somewhere in the top level jquery.spellchecker.js include that is watching for activity.

@MAHESHHM
Copy link

I made jquery spell checker to work on multiple ckeditors with the following changes, see if you can make similar changes to tinymce plugin

change toggle function in plugin.js to

toggle: function(editor) {
var id;
if(this.editor != undefined){
id = this.editor.id;
if(id != editor.id)
this.destroy();
}

this.editor = editor;
if (!this.spellchecker) {
  this.create();
} else {
  this.destroy();
}

}

This will solve the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants