Extract _expandRange function
Tell the toolbar to update active status in removeLink