I am trying to write my own spellcheck and for that I need to wrap words in a span element. Where can I get started here? If I directly modify the dom with innerHTML, I am the losing cursor position. Also I can't find the place where standart scayt plugin (_source/plugins/scayt/plugin.js) wraps a word into a
<span data-scaytid="1" data-scayt_word="exampl">exampl</span>Thanks in advance.