Gets the current editor mode

Example

// Get the editor mode
var mode = editor.mode.get()

Parameters

none.

 

Returns

String - code if the editor is in code mode, design if the editor is design mode.