Move toolbar code outside of editor component, add delegation.