Set editor mode