how does the editor work