In place editor with event delegation support.
you could create an instance this way:
//make every div that is a form child node editable var inplace = new InPlaceEditor($$('form > div'), { properties: { rows: 3, cols: 18 }, onChange: function (div, value, oldValue) { //do something } });
or this way, you can attach elements later
//make every div that is a form child node editable var inplace = new InPlaceEditor({ properties: { rows: 3, cols: 18 }, onChange: function (div, value, oldValue) { //do something } }); inplace.attach('form > div');
fire when the element content has been edited.
attach InPlaceEditor behaviors to elements
elements - (mixed) elements.
remove InPlaceEditor behaviors from elements
elements - (mixed) elements.
A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.
Found a bug in this plugin? Please report it this repository's Github Issues.
blog comments powered by Disqus