user focusOffset, not extentOffset
cleanup
insert &nbsp instead of space and move cursor AFTER the space