gulf-contenteditable

4.0.1 • Public • Published

gulf-contenteditable

Convenient gulf wrapper for contenteditable elements

Install

npm install gulf-contenteditable

Usage

var bindEditor = require('gulf-contenteditable')

var editable = document.querySelecor('#doc[contenteditable]')
var doc = bindEditor(editable)

API

bindEditor(editable:DOMElement, [storageAdapter])

  • editable -- a contenteditable Element to be wired up with gulf
  • storageAdapter -- a gulf storage adapter (optional; defaults to the in-memory Adapter)
  • returns the gulf.EditableDocument (see the gulf docs)

Legal

(c) 2015 by Marcel Klehr

GNU Lesser General Public License

Package Sidebar

Install

npm i gulf-contenteditable

Weekly Downloads

3

Version

4.0.1

License

LGPL-3.0

Last publish

Collaborators

  • marcelklehr