Client-side markdown editor with the compatibility of any markdown render engine.
npm install bootstrap-markdown-editorClient-side markdown editor which compatible with any renderer engine.
javascript
var editor = new MarkdownEditor({
container: 'content',
markdownToHtmlConvertor: markdownToHtmlConvertor
});
editor.load();
`Options
$3
_string_ or _object_, an Id of `textarea` element or element itself for wrapping in `MarkdownEditorShell`.$3
_string_, the title of fullscreen button which will be shown by mouse over. Defaults to `Enter Fullscreen`.$3
_string_, the title of preview button which will be shown by mouse over. Defaults to `Toggle Preview Mode`.$3
_function_ that represents converter from markdown text (input parameter) to html (output value).$3
_array_ of groups of `buttons` to display in toolbar.Each group should represent the following object:
`javascript
{
name: "", // name of group
buttons: [ // array of group buttons
{
title: "Bold", // title of button
className: "glyphicon glyphicon-bold", // class of button
action: buttonAction(e) // a function that represents the action of button, where e is instance of plugin
}
]
}
``