cocoa-wyg

1.2.0 • Public • Published

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.

Package Sidebar

Install

npm i cocoa-wyg

Weekly Downloads

0

Version

1.2.0

License

MIT

Unpacked Size

45.3 kB

Total Files

6

Last publish

Collaborators

  • andreea.anichiti