Setting up the editor