Okay so I opted to track my instances of codemirror in an array and address them based on an ID that I keep track of and link to the target
. Once I have my instance I can just set focus using the codemirror method cmInstance.focus();
Currently I feel this is the best solution.