Pass editor into view constructor