1.0.1 • Published 4 years ago

@uls/editor v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

INSTALL npm install @uls/editor

USAGE

jQuery

$('.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'});