easyedit
inline editing of a single HTMLElement
rationale
Make any element editable with a click. The input element uses the same font and font-size as the original element. Pressing enter or changing focus saves the new value. Pressing escape returns it to its original value.
simple example
const easyedit = require('easyedit')
const div = document.createElement('div')
document.body.appendChild(div)
div.innerHTML = 'Please edit me.'
new easyedit(div, { onsuccess: (value) => console.log('div changed to: ' + value) })
live example
https://davidfig.github.io/easyedit/
API
/** * * @param * @param * @param * @param * @param * @param * @param */
license
MIT License
(c) 2017 YOPEY YOPEY LLC by David Figatner