InstaEdit
Javascript plugin to edit any element in-place
- Convert any text element to editable
- No dependencies required
- Easy to use
Usage
Include instaedit.js
in your project.
Via data attribute
Click to Edit Me
// Creating new instance of InstaEditvar instaedit = ;instaedit; // Function used to handle value after editing { console;}
Using javascript
Editable Story Title
// Getting reference to #story-titlevar title = document; // Creating new instance of InstaEditvar instaedit = ; // Adding #story-title to instaeditinstaedit;