Editor mode for global script