INSTALL npm install @uls/editor
USAGE
jQuery
<script src="js/editor.js"></script>$('.editor').editor();
JS
import Editor from '@uls/editor'
const editor = new Editor('.editor');
OPTIONS $('.editor').editor({ contenteditable: true });
const editor = new Editor('.editor', { contenteditable: true });
METHODS
$('.editor').editor('hide', {id: 'editor_0'}); $('.editor').editor('show', {id: 'editor_0'}); $('.editor').editor('getData', {id: 'editor_0'});
editor.hide({id: 'editor_0'}); editor.show({id: 'editor_0'}); editor.getData({id: 'editor_0'});