Class: MDEditor

MDEditor

Markdown editor


new MDEditor(options)

Parameters:
Name Type Description
options Object

a list of options

Properties
Name Type Argument Default Description
input Element

the textarea to use as input

output Element <optional>

element to use as output

data Element <optional>

a list of key value to replace in the markdown %key%

minibar boolean <optional>
true
scrolling boolean <optional>
false
Source:
md/MDEditor.js
Fires:
  • event:change

Extends

  • ol_Object

Methods


setTools(minibar)

Add a new tool to the toolbar

Parameters:
Name Type Description
minibar boolean
Source:
md/MDEditor.js