MarkdownEditor($el, eventManager)

Class MarkdownEditor

new MarkdownEditor($el, eventManager)

Creates an instance of MarkdownEditor.

Parameters:
Name Type Description
$el jQuery

container jquery element

eventManager EventManager

event manager

Methods

static factory($el, eventManager) → {MarkdownEditor}

MarkdownEditor factory method

Parameters:
Name Type Description
$el jQuery

Container element for editor

eventManager EventManager

EventManager instance

Returns:
MarkdownEditor -
  • MarkdownEditor

getTextObject(range) → {object}

Get text object of current range

Parameters:
Name Type Description
range Object

Range object of each editor

Returns:
object

setValue(markdown, cursorToEndopt)

Set Editor value

Parameters:
Name Type Attributes Default Description
markdown string

Markdown syntax text

cursorToEnd boolean <optional>
true

move cursor to contents end