Vendor Plugin

Vendor : Markdown Editor

EasyMDE: A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.


/* 
	:: Vendor Path
	node_modules/easymde/

	:: Installed
	npm install easymde

	:: SOW Controller Init
*/	$.SOW.vendor.markdowneditor.init('.markdown-editor');
									

Basic

<!--
Note: this editor is using fontawesome icons downloaded from a CDN.
Smarty might replace this in a future update to use core icons
(your code will not be affected).

* Autosave is repopulating if no content already present inside textarea.
(if: data-autosaved-ignore-if-content-present="true")
-->
<textarea class="markdown-editor"
	data-toolbar='["bold", "italic", "strikethrough", "|", "heading-1", "heading-2", "heading-3", "|", "image", "link", "|", "unordered-list", "ordered-list", "quote", "|", "guide", "|", "preview"]'
	data-status='["autosave", "lines", "words", "cursor"]' 

	data-autofocus="true" 
	data-autosave="true" 
	data-autosave-delay="1000" 
	data-autosaved-ignore-if-content-present="true" 

	data-min-height="500px" 
	data-spellcheck="false" 
	data-prompt-urls="true" 

	data-lng-placeholder="Type here.." 
	data-lng-prompt-url="Type your URL:" 
></textarea>