Regression bug fix: caret position

## Steps to reproduce bug
Select some text and note it out. The caret is placed at the end of the note. If you type the note will expand.

## After the fix
Select some text and note it out. The caret should be placed _after_ the note. If you type then you'll be typing after the note.