editable-sanitize-component

ContentEditable sanitizer for use with nickjackson/editable

Editable-Sanitize

ContentEditable Sanitizer for use with nickjackson/editable

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

$ component install nickjackson/editable-sanitize
var Editable = require('editable')
  , Sanitize = require('editable-sanitize')
  , el = document.querySelector('h1');
 
Editable(el).use(Sanitize());

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

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

MIT