<juicy-markdown-tabbededitor>
Polymer Element with GitHub Flavored Markdown (GFM) editor with file drop, paste functionality and a preview tab
Demo
Install
Install the component using Bower:
$ bower install juicy-markdown-tabbededitor --saveOr download as ZIP.
Usage
-
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>
Options
| 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>. |
See also
-
<juicy-markdown>- Markdown viewer -
<juicy-filedrop>- just file drop panel -
<juicy-markdown-tabbededitor>- simpler Markdown editor
Contributing and Development
History
For detailed changelog, check Releases.
License
MIT
