logo

/repo|v2.5.0

Class

new ModeSwitch(rootElement, initialType, eventManager)modeSwitch.jsline 23

Class ModeSwitch
UI Control for switch between Markdown and WYSIWYG

EXTENDS
  • UIController
PARAMETERS
NameTypeDescription

rootElement

HTMLElement

root element

initialType

string

initial type of editor

eventManager

Instance Methods

hide()modeSwitch.jsline 87

hide switch tab bar

isShown()modeSwitch.jsline 73

is the switch tab bar shown

RETURNS:
{

Boolean

} - showing status

show()modeSwitch.jsline 80

show switch tab bar

Resizable