Init editor