npm install contenteditable-utilities
import ContentEditable from 'contenteditable-utilities';
// const ContentEditable = require('contenteditable-utilities');
new ContentEditable({
element: dummyElement,
options: {
onBlur: (value) => {
console.log(value);
}
}
});
value should be valid
npm test
In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.