When the Summernote text editor initializes with the focus
property set to true
, the editor gains focus but places the cursor at the beginning of the editor.
My preference would be to have the cursor placed where the user had clicked initially. At a bare minimum I would just need to place the cursor at the end of the editor.
The Summernote API doesn't seem to directly support this and I've tried various hacky looking solutions; Such as emptying the text area, creating the editor, then inserting the HTML nodes. The cursor remains at the beginning of the line still.
Forgot to include my fiddle: http://jsfiddle.net/madChemist/gvy3po4L/1/