Reputation: 119
How can I select active (focused) editor in the page when I have multiple CodeMirror editors?
Upvotes: 2
Views: 182
Reputation: 1984
Loop through each codemirror instance and detect focus using editor.hasFocus().
editor.hasFocus()
Upvotes: 1