[TextEditor] Fixed issue in selection system & made block selection
more mature.