let CodeEditor provide mode option