editor: remove legacy preview code