[TextEditor] Fixed cut&paste bug.