mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-02 15:44:28 -06:00
Tweak formatting of README code
This commit is contained in:
parent
14b1bd023c
commit
b55fef85ae
@ -29,7 +29,7 @@ Pure JavaScript method
|
||||
|
||||
```HTML
|
||||
<script>
|
||||
var simplemde = new SimpleMDE(document.getElementById("MyID"));
|
||||
var simplemde = new SimpleMDE({ element: document.getElementById("MyID") });
|
||||
simplemde.render();
|
||||
</script>
|
||||
```
|
||||
@ -38,7 +38,7 @@ jQuery method
|
||||
|
||||
```HTML
|
||||
<script>
|
||||
var simplemde = new SimpleMDE($("#MyID")[0]);
|
||||
var simplemde = new SimpleMDE({ element: $("#MyID")[0] });
|
||||
simplemde.render();
|
||||
</script>
|
||||
```
|
||||
@ -170,4 +170,4 @@ As mentioned earlier, SimpleMDE is an improvement of [lepture's Editor project](
|
||||
- Simplified the toolbar
|
||||
- Many new options during instantiation
|
||||
- New icons and tooltips
|
||||
- Additional keyboard shortcuts
|
||||
- Additional keyboard shortcuts
|
Loading…
x
Reference in New Issue
Block a user