Bug fix for cursor when deleting in html mode.