mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2025-07-16 22:44:28 -06:00
Show different options on the demo
This commit is contained in:
parent
c287cf1804
commit
3ddc3dea1f
21
index.html
21
index.html
@ -39,7 +39,7 @@
|
|||||||
<section class="main-content">
|
<section class="main-content">
|
||||||
<h1><a id="demo" class="anchor" href="#demo" aria-hidden="true"><span class="octicon octicon-link"></span></a>Demo</h1>
|
<h1><a id="demo" class="anchor" href="#demo" aria-hidden="true"><span class="octicon octicon-link"></span></a>Demo</h1>
|
||||||
|
|
||||||
<textarea># Intro
|
<textarea id="demo1"># Intro
|
||||||
Go ahead, play around with the editor! Be sure to check out **bold** and *italic* styling, or even [links](http://google.com). You can type the Markdown syntax, use the toolbar, or use shortcuts like `cmd-b` or `ctrl-b`.
|
Go ahead, play around with the editor! Be sure to check out **bold** and *italic* styling, or even [links](http://google.com). You can type the Markdown syntax, use the toolbar, or use shortcuts like `cmd-b` or `ctrl-b`.
|
||||||
|
|
||||||
## Lists
|
## Lists
|
||||||
@ -57,6 +57,12 @@ Unordered lists can be started using the toolbar or by typing `* `, `- `, or `+
|
|||||||
## What about images?
|
## What about images?
|
||||||
</textarea>
|
</textarea>
|
||||||
|
|
||||||
|
<textarea id="demo2"># This one autosaves!
|
||||||
|
By default, it saves every 10 seconds, but this can be changed. When this textarea is included in a form, it will automatically forget the saved value when the form is submitted.</textarea>
|
||||||
|
|
||||||
|
<textarea id="demo3"># This one is bare
|
||||||
|
You can also choose to hide the statusbar and/or toolbar for a simple and clean appearance.</textarea>
|
||||||
|
|
||||||
<footer class="site-footer">
|
<footer class="site-footer">
|
||||||
<span class="site-footer-credits"><a href="https://github.com/NextStepWebs/simplemde-markdown-editor">SimpleMDE Markdown Editor</a> is maintained by <a href="https://github.com/NextStepWebs">NextStepWebs</a>.</span>
|
<span class="site-footer-credits"><a href="https://github.com/NextStepWebs/simplemde-markdown-editor">SimpleMDE Markdown Editor</a> is maintained by <a href="https://github.com/NextStepWebs">NextStepWebs</a>.</span>
|
||||||
</footer>
|
</footer>
|
||||||
@ -69,11 +75,22 @@ Unordered lists can be started using the toolbar or by typing `* `, `- `, or `+
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
new SimpleMDE({
|
new SimpleMDE({
|
||||||
|
element: $("#demo1")[0],
|
||||||
|
});
|
||||||
|
|
||||||
|
new SimpleMDE({
|
||||||
|
element: $("#demo2")[0],
|
||||||
autosave: {
|
autosave: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
unique_id: "demo_editor",
|
unique_id: "demo2",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
new SimpleMDE({
|
||||||
|
element: $("#demo3")[0],
|
||||||
|
status: false,
|
||||||
|
toolbar: false,
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -1 +0,0 @@
|
|||||||
{"name":"SimpleMDE Markdown Editor","tagline":"SimpleMDE is a simple, embeddable, and beautiful markdown editor","body":"# Demo\r\nComing soon!\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."}
|
|
Loading…
x
Reference in New Issue
Block a user