well, i misunderstood your question, you want to insert where the mouse is. that's fine then.

only flaw would be if you highlight any characters, this will replace those characters, if u do not want that to occur, make .selectionlength = 0