I just finished the first version of SilverIPE, a lightweight, cross-browser in place editor. Some of it’s features include:
- Cross-Browser (Tested with IE 5,6&7 - Firefox 2&3 - Safari 2&3 - Opera)
- No dependencies. Only 1 javascript file to include, that’s it
- Easy to use
- Well documented
The documentation, examples etc. can be found on the SilverIPE’s page. If you have any question or comment, please leave them here for now…
2 Comments
Hi, i made small changes to your wonderfull script in order to submit the input field on keystroke enter:
I add a new option (line 16):
this.options = {
parameterName: ‘value’,
highlightColor: ‘#FFFFBF’,
borderColor: ‘#000′,
savingText: ’saving…’,
saveButtonLabel: ‘valider’,
cancelButtonLabel: ‘annuler’,
textWidth: 20,
saveOnEnterPressed : true
};
and on line 75 :
if (this.options.saveOnEnterPressed){
this.inputEl.onkeypress= function (event){
var e = event || window.event;
var code = e.charCode || e.keyCode;
if (e.keyCode == 13){
that.saveClicked.call(that);
return false;
}
};
}
Cheers from France,
ibob
Ps: i post here because comments desnt seem to works on the other site
Hi there!
That’s a nice addon!Thanks for the snippet! I’ll probably add the Tab key too and add it to the code! :)
I’ll check the comment form on the other site, not sure what’s wrong with it!