Equivalent of CodeMirror property (DOM) in CM6

Hi there! I’d like to get a CM instance through a DOM node container. Is it possible in CM6?

Thanks.

or if there is any way to set focus manually without having an editor instance

Calling .focus() on the editable (.cm-content) element will focus the editor.

works! Many thanks :slight_smile: