adds editor state