mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-23 09:54:28 -06:00
Add event handling to README
This commit is contained in:
parent
4a2a06c642
commit
1c1f3fdecd
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
|
## 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/).
|
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