Write your text in the editor.
Cut selected text to clipboard.
Copy selected text to clipboard.
Paste clipboard after cursorposition.