I am making a little word prediction plugin for tinyMCE and need to extract a bit of text and later …