So what I’m trying to do is basically travesing through tokens, I asked it in stackoverfow already: http://stackoverflow.com/questions/27233866/edit-src-of-img-with-codemirror
I know codemirror doesn’t designed for this but maybe there’s a way to do it…
I don’t know much about codemirror internals so if you could give me a hint about the logic that would really help.
So I think it’s about the position of tokens and moving between them. If I could seek for src token and some string after that and get it’s position somehow I can use it to set a selection and use replaceSelection method to do the replacement…
Thanks in advance.