editor: Handling backspace/delete on the text boundries