Markdown Text Editor Plugin
As mentioned in the title above.
2014-09-04: The HTML version of this editor is available!
Demo
→ https://rawgit.com/tovic/markdown-text-editor/master/index.html
Requires
- This text editor library
- Icon fonts from Font Awesome
Basic Usage
Put icon fonts and CSS files in the <head>
:
<link href="css/font-awesome.min.css" rel="stylesheet"> <link href="css/mte.min.css" rel="stylesheet">
Create a <textarea>
element in the body:
<textarea></textarea>
Put editor and MTE plugin after the <textarea>
element then execute the plugin:
<script src="js/editor.min.js"></script> <script src="js/mte.min.js"></script> <script> var myEditor = new MTE(document.getElementsByTagName('textarea')[0]); </script>
Options
Read more on the Wiki Pages