Switch editor mode using the mode box. Note that the mode can be changed programmatically as well using the method editor.setMode(mode), try it in the console of your browser.
editor.setMode(mode)
Update