Polymer Element with GitHub Flavored Markdown (GFM) editor with file drop, paste functionality and a preview tab
Install the component using Bower:
$ bower install juicy-markdown-tabbededitor --save
Or download as ZIP.
-
Import Web Components' polyfill, if needed:
<script src="bower_components/webcomponentsjs/webcomponents.js"></script>
-
Import Custom Element:
<link rel="import" href="bower_components/juicy-markdown-tabbededitor/juicy-markdown-tabbededitor.html">
-
Start using it!
<juicy-markdown-tabbededitor></juicy-markdown-tabbededitor>
Attribute | Options | Default | Description |
---|---|---|---|
index |
number | `` | Index of a tab to be shown by default. |
footer |
string | `` | Text/HTML to be shown as a footer. |
This component extends <juicy-markdown-editor>
so check its options
Attribute | Options | Default | Description |
---|---|---|---|
value |
string | `` | Markdown to render. |
placeholder |
string | `` | Input placeholder. |
uploadurl |
string | `` | URL to files storage server, see <juicy-filedrop url> . |
customheader |
string | x-file |
Name for custom header that contains JSON with file meta data, see <juicy-filedrop customheader> . |
ghcss |
boolean | false |
Should ghithub-markdown.css be imported? see <juicy-markdown ghcss> . |
<juicy-markdown>
- Markdown viewer<juicy-filedrop>
- just file drop panel<juicy-markdown-tabbededitor>
- simpler Markdown editor
For detailed changelog, check Releases.
MIT