initialize editor