node package manager


Turn element into contenteditable


Turn element into contenteditable

This component is a container of sorts and doesn't have any special functionality. Its main purpose is to give the other plugins for contenteditable elements to be mounted.

I am in the process of writing:

  • nickjackson/editable-placeholder
  • nickjackson/editable-sanitizer
$ component install nickjackson/editable

Initialize a given el as a contenteditable element

Convenience method to hook in plugins

Removes event listeners, not before emitting 'unbind' to which plugins can bind to it, and programatically unbind there callbacks.

.innerHTML getter/setter

.textContent getter/setter. Falls back to innerText.

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