I have a ,
, etc. I would l
In case someone, who uses MediumEditor that manages contenteditable
element, stumbles upon this issue, the following has worked for me:
editor.selectElement(editorDOMNode);
editor
is an instance of MediumEditor
.editorDOMNode
is a reference to the actual contenteditable
DOM node.It is also possible to focus on a specific child node within the editor as follows:
editor.selectElement(editorDOMNode.childNodes[0]);