'It returns whether the editor is in 'Source Code View' mode.
Return:
if(editor.isCodeViewMode()) { editor.setMode('edit'); }