Spell checking itself is very easy. See
this for underlying misspellings and
this for adding possible corrections to the right click menu. Both of those are from a Markdown editor I wrote in Python. The only challenge will be translating that into C++ (thankfully I used Python bindings to C++ libraries) and making it more robust.