Transferred editor loop to "editor_mode"

Title is self-descriptive