init editor