mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-18 23:44:29 -06:00
Merge pull request #21 from NextStepWebs/development
Add event handling to README
This commit is contained in:
commit
bbcff529ec
10
README.md
10
README.md
@ -98,6 +98,16 @@ Or, you can keep the height static:
|
||||
}
|
||||
```
|
||||
|
||||
## Event handling
|
||||
You can catch the following list of events: https://codemirror.net/doc/manual.html#events
|
||||
|
||||
```
|
||||
var simplemde = new SimpleMDE();
|
||||
simplemde.codemirror.on("change", function(){
|
||||
console.log(simplemde.value());
|
||||
});
|
||||
```
|
||||
|
||||
## How it works
|
||||
SimpleMDE is an improvement of [lepture's Editor project](https://github.com/lepture/editor) and includes a great many number of changes. It is bundled with [CodeMirror](https://github.com/codemirror/codemirror) and depends on [Font Awesome](http://fortawesome.github.io/Font-Awesome/).
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user