ForgeComponents
en

Components

j-MarkdownEditor

jComponent 20 · jcomponent@20 component Example loaded with jComponent 20

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.

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>