CodeMirror move cursor to another instance manually

How to move cursor to another instance?
I tried to do cmInstance.focus() but it do not help.