grande-module
v0.1.0 wysiwyg commonjs browserify
grande-module
Use Grande.js as a CommonJS module eg. in your Browserify builds. Originally forked from Grande.js by mduvall.
This build includes many bug fixes but also alters the way grande works quite a bit. I wanted to use grande as an easy drop-in component in our AngularJS-based SPA admin tools via directives. Via Grande.dispose you can unbind all events bound by grande and also remove any elements appended to the document (the styling menu).
Heading tags from h1 to h5 are supported but you also have the ability to omit any tags from the menu via config.
Usage
Install grande-module with npm:
npm install grande-module
Include css and fonts from the dist folder.
Use it:
var grande = require('grande-module'); var article = document.createElement('article'); grande.bind(article); document.body.appendChild(article);
License
MIT
npm i [email protected]
Metadata
- MIT
- Whatever
- Teemu Alapoikela
- released 4/6/2014