Layout

Layout

Constructor

new Layout(options, eventManager)

Parameters:
Name Type Description
options object

Option object

eventManager EventManager

Event manager instance

Methods

changePreviewStyle(style)

Toggle preview style between tab and vertical split

Parameters:
Name Type Description
style string

Preview style ('tab' or 'vertical')

getEditorEl() → {jQuery}

Get jQuery wrapped editor container element

Returns:
jQuery

getMdEditorContainerEl() → {jQuery}

Get jQuery wrapped Markdown editor element

Returns:
jQuery

getPreviewEl() → {jQuery}

Get jQuery wrapped preview element

Returns:
jQuery

getWwEditorContainerEl() → {jQuery}

Get jQuery wrapped WYSIWYG editor element

Returns:
jQuery

hide()

Hide Editor

init()

Initializer

remove()

Remove Editor

show()

Show Editor

switchToMarkdown()

Switch editor mode to Markdown

switchToWYSIWYG()

Switch editor mode to WYSIWYG