logo

/repo|v2.5.0

Class

new MarkdownEditor(el, eventManager, toastMark, options)markdownEditor.jsline 114

Class MarkdownEditor

EXTENDS
  • CodeMirrorExt
PARAMETERS
NameTypeDescription

el

HTMLElement

container element

eventManager

EventManager

event manager

toastMark

options

Object

options of editor

Instance Methods

getTextObject(range)markdownEditor.jsline 268

Get text object of current range

PARAMETERS
NameTypeDescription

range

Object

Range object of each editor

RETURNS:
{

MdTextObject

}

resetState()markdownEditor.jsline 436

latestState reset

overridesetValue(markdown, cursorToEnd)markdownEditor.jsline 259

Set Editor value

PARAMETERS
NameTypeDescription

markdown

string

Markdown syntax text

cursorToEnd

boolean = true

move cursor to contents end

Resizable