DefaultUI(editor)

Class Default UI
initialize ui instances. toolbar, popups

new DefaultUI(editor)

Creates an instance of DefaultUI.

Parameters:
Name Type Description
editor ToastUIEditor

editor instance

Members

static $el :jQuery

DefaultToolbar wrapper element

static name :string

UI name

Methods

createPopup(options) → {LayerPopup}

creates popup

Parameters:
Name Type Description
options LayerPopupOption

layerPopup options

Returns:
LayerPopup -
  • crated layerPopup

getEditorHeight() → {Number}

get editor height

Returns:
Number -
  • height of editor

getEditorSectionHeight() → {Number}

get editor section height

Returns:
Number -
  • height of editor section

getModeSwitch() → {ModeSwitch}

get mode switch instance

Returns:
ModeSwitch -
  • mode switch instance

getPopupTableUtils() → {PopupTableUtils}

get Table Popup

Returns:
PopupTableUtils -
  • PopupTableUtils

getToolbar() → {Toolbar}

get toolbar instance

Returns:
Toolbar -
  • toolbar instance

hide()

hide

remove()

remove

setToolbar(toolbar)

set toolbar instance

Parameters:
Name Type Description
toolbar Toolbar

toolbar

show()

show