Open michaelkn opened 6 years ago
Unification is always welcome, spell checker's code for misspelled words detection is quite messy currently as it tries hard to account for many possibilities - like for the parts of the misspelled word to be located in adjacent yet different DOM nodes. Given the demo page of findAndReplaceDOMText
, it can handle all such tricky cases. Would be nice to try employing this script in spell checker as well.
There are (at least) two places where the words' highlighting is used: Find and replace and Spell checker. Perhaps, the newly added
findAndReplaceDOMText
script could help in both places.