Vendor Plugin

Vendor : Medium Editor

Medium.com WYSIWYG editor clone. Uses contenteditable API to implement a rich text solution.


/* 
	:: Vendor Path
	node_modules/medium-editor/

	:: Installed
	npm install medium-editor

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

Select text

<!-- 
Note: picker is working only if Colorpicker Vendor is available!
-->
<textarea class="medium-editor bg-white border p--15 rounded w-100 min-w-250"

	data-placeholder="Type your message..." 
	data-lng-save="Save" 
	data-lng-clear="Clear" 
	data-lng-link="Paste or type a link" 

	data-btn-picker="true" 
	data-btn-bold="true" 
	data-btn-italic="true" 
	data-btn-underline="true" 
	data-btn-link="true" 
	data-btn-h1="false" 
	data-btn-h2="true" 
	data-btn-h3="true" 
	data-btn-h4="true" 
	data-btn-h5="true" 
	data-btn-h6="true" 
	data-btn-unordered="true" 
	data-btn-ordered="true">
	Content here...
</textarea>