The text pasted by the Paste method replaces the currently selected text, if any. If no text is selected, the new text is inserted at the caret position.
To select the specified text within the editor, use the TextEdit.Select method. You can also select all the text in the editor via the TextEdit.SelectAll method. Use the TextEdit.Cut method to copy the selected text to the clipboard while deleting it from the edit box. The TextEdit.Delete deletes the currently selected text from the text editor.