Fix constructor

Pass editor to super class, fixes #2.