badsyntax / jquery-spellchecker

[not maintained] A lightweight jQuery plugin that can check the spelling of text within a form field or DOM tree.
http://jquery-spellchecker.badsyntax.co
MIT License
257 stars 113 forks source link

Spellchecking will not work in Native IE7 in CKEditor #34

Open johan-ludvigsson-stratsys opened 11 years ago

johan-ludvigsson-stratsys commented 11 years ago

When turning spellchecking on it will result in "Invalid argument" for IE7. This is because the findAndReplaceDOMText creates replacements nodes within the top document and tries to insert that into the iframe of editor. To solve this problem, you simply have to use owning document where the node will be placed.

badsyntax commented 11 years ago

Does this bug occur when using one instance or multiple instances of the spellchecker? (I would guess it only occurs when using multiple instances.)

johan-ludvigsson-stratsys commented 11 years ago

Any number of instances

johan-ludvigsson-stratsys commented 11 years ago

See 585d20d for a solution

johan-ludvigsson-stratsys commented 11 years ago

It is the same problem as this one http://stackoverflow.com/questions/5172202/does-ie7-not-fully-support-javascripts-insertbefore-method

badsyntax commented 11 years ago

Thank you, I have replicated the issue in IE7 and am aware of the what the problem is. I need to review 585d20d before merging.