Fix broken styles: initial empty editor + search/replace dialog