is-editable is a small MooTools plugin to to create in place editing fields.
Snippet code Javascript:
#JS
$("test01").makeEditable({
type: 'text',
onBeforeEdit: function(){
},
onComplete: function(){
}
});
$("test02").makeEditable({
type: 'textarea',
onBeforeEdit: function(){
},
onComplete: function(){
}
});
Snippet code HTML:
#HTML
<p id="test01">double click</p>
<p id="test02" style="width:200px; border: 1px solid black">
long long long long long long long long long long long long long long long long long long long long long text
</p>