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.