Set up editor