# j-MarkdownEditor

> This component use https://simplemde.com/ editor for markdown editing.

Framework: jcomponent20
Product: jComponent 20 (jcomponent@20)
Language: en
Content-SHA256: db5579b1ca83932f175d7d5485fcd137fc7bf9635d491c23c711b0bdfc6dcf2b
Snapshot: c0700e321579725c5cf4f5ace1ad7d2866d1b4f93c24a63c0b41b6b7998e976c
Sources: components@910ed1a86f6e72b4f031d3ad0dc7844f9fc5cb8e
Review: not-recorded

This component use `https://simplemde.com/` editor for markdown editing.

__Configuration__:

- `required` {Boolean} optional, default `false`
- `label` {String} optional, default `html` of the element

Use it with `<ui-component name="markdowneditor">`. When the component is not loaded yet, jComponent downloads it on first use from the address in `DEF.fallback` (the Componentator CDN by default). Author: Michal Capo. Source: the Componentator components repository, MIT license.

```html example.html
<ui-component name="markdowneditor" config="markdown"></ui-component>

<script>
	var markdown = '# Hello world\nLorem ipsum dolor sit amet, **consectetur** adipisicing elit. Eius, ~~illo~~.\n\n```javascript \nalert(\'Markdown Preview\');\n```';
</script>
```
