https://github.com/lepture/editor
var editor = new Editor();
editor.render();
editor.codemirror.getValue(0;
new Editor({
element: document.getElementById('editor'),
toolbar: []
})
component install lepture/editor
spm install lepture/eidtor
npm install
npm install grunt-cli -g
grunt transport
<link rel="stylesheet" href="http://lab.lepture.com/editor/editor.css" />