/cocoa-wyg

A lightweight WYSIWYG editor written in javascript.

Primary LanguageJavaScriptMIT LicenseMIT

cocoa-wyg

NPM Version Build Status License

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 <textarea> element

<textarea id="textarea-real"></textarea>

Then, create a new instance of editor

var editor = new Editor("textarea-real");

Live demo 👀

A live demo can be seen here.

License

cocoa-wyg may be freely distributed under the MIT license.