editable-sanitize-component

0.0.1 • Public • Published

Editable-Sanitize

ContentEditable Sanitizer for use with nickjackson/editable

Introduction

This component is a plugin to use with nickjackson/editable.

Installation

$ component install nickjackson/editable-sanitize

Example

var Editable = require('editable')
  , Sanitize = require('editable-sanitize')
  , el = document.querySelector('h1');
 
Editable(el).use(Sanitize());

API

Sanitize()

Returns a wrapper function with the main argument requring an instance of Editable.

Todo

  • Test on other browsers. Currently only tested on Chrome OSX.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i editable-sanitize-component

Weekly Downloads

3

Version

0.0.1

License

none

Last publish

Collaborators

  • nickjackson