new MDEditorBase(options)
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | a list of options Properties
|
- Source:
- md/MDEditorBase.js
Fires:
- event:change
Extends
- ol_Object
Methods
-
_onchange()
-
Something has change > save for undo
- Source:
- md/MDEditorBase.js
-
addSeparatorTool()
-
Add a new tool to the toolbar
- Source:
- md/MDEditorBase.js
-
addTool()
-
Add a new tool to the toolbar
- Source:
- md/MDEditorBase.js
-
charAt(n)
-
Get char at
Parameters:
Name Type Description nnumber index
- Source:
- md/MDEditorBase.js
-
clearUndo()
-
Clear undo/redo
- Source:
- md/MDEditorBase.js
-
edit(options)
-
Markdown editor
Parameters:
Name Type Description options* Properties
Name Type Description typeline | insert | selection | fn | dialog operation type
valvalue to insert
wrapArray.<string> wrap word with
fnfunction a function to use when type = 'fn' or 'dialog'
- Source:
- md/MDEditorBase.js
-
getValue()
-
Get the current value
- Source:
- md/MDEditorBase.js
Returns:
md
- Type
- string
-
mdFullDialog()
-
Display a fulldialog
- Source:
- md/MDEditorBase.js
-
refresh()
-
Refresh output (with delay)
- Source:
- md/MDEditorBase.js
-
setDialogClassName(className)
-
Set dialog class name
Parameters:
Name Type Description classNamestring - Source:
- md/MDEditorBase.js
-
setTools(minibar)
-
Add a new tool to the toolbar
Parameters:
Name Type Description minibarboolean - Source:
- md/MDEditorBase.js
-
setValue(md)
-
Set the current value
Parameters:
Name Type Description mdstring - Source:
- md/MDEditorBase.js
-
wrap(st, e)
-
Wrap char
Parameters:
Name Type Description ststring a 2 char length string
eEvent - Source:
- md/MDEditorBase.js