DEMO: http://annotis.github.io/MyMarkdownEditor/
- It's a Jquery widget
- Markdown syntax real-time hightlight
- No toolbar
##Usage
The element must be a textarea.
<textarea id="editor"></textarea>$('#editor').editor()Codemirror configs should nested pass in. All Codemirror configs are available. See also: Codemirror configuration
$('#editor').editor({
autopreview: true,
codeMirror:{
// nested options
lineNumbers: true
}
})| key | type | default |
|---|---|---|
| preview | String or jquery object | '#preview' |
| autoPreview | boolean | true |
var editor = $('#editor').editor();
editor.editor('getInput') //call method- marked
- codemirror
- highlight.js