1.2.0 • Published 3 years ago
cocoa-wyg v1.2.0
cocoa-wyg
A lightweight WYSIWYG editor written in javascript.
Installation
Install via npm:
npm install cocoa-wyg
Usage
You can see an usage example in examples folder.
Firstly, you need to include the bundled file
<script src="node_modules/cocoa-wyg/dist/bundle.min.js"></script>
And some element
<textarea id="textarea-real"></textarea>
Then, create a new instance of editor
var editor = new Editor("textarea-real");
Live demo :eyes:
A live demo can be seen here.
License
cocoa-wyg may be freely distributed under the MIT license.