Textbox.io 2.x Documentation : editor.mode.get()

Gets the current editor mode

Example

editor.content.set(html)
// 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.