Closed GoogleCodeExporter closed 8 years ago
Thanks for the find, I completely missed the fact that of course I can't
trigger commit with enter when
showing the textarea.
As for the nl2br - I'm not so sure I want that in the inline editor propper.
I've added a much expanded
callback interface on trunk, could you give it a try and see if that allows you
to workaround the br problem
without changes to the editor itself?
Thinking about the nl2br thing more, that might make a sensible default choice
that can then be disabled with
a setting. I'd love to get more input from you on that one.
Original comment by mhaec...@gmail.com
on 22 May 2010 at 3:19
I've added a fix to the enter key in the textarea to trunk in r121, please feel
free to reopen this issue if that
doesn't fix the problem of newlines accidentally triggering the reload
Original comment by mhaec...@gmail.com
on 22 May 2010 at 4:21
I'll check on monday when I'll be back to the office. I'll download the trunk
version
via svn.
Original comment by adriendu...@gmail.com
on 22 May 2010 at 10:38
ok it works in the trunk version.
and I can add myself the nl2br doing
jQuery(document).ready(function(){
jQuery(".editable").editInPlace({
saving_animation_color: "#ECF2F8",
field_type: "textarea",
textarea_rows: "2",
textarea_cols: "15",
callback: function(idOfEditor, enteredText, orinalHTMLContent, settingsParams,
animationCallbacks) {
var nl2br=new RegExp("\n", "g");
return enteredText.replace(nl2br, "\n<br/>");
}
});
});
It works fine. Now I don't know if this should be changed by default.
Original comment by adriendu...@gmail.com
on 25 May 2010 at 1:50
Original issue reported on code.google.com by
adriendu...@gmail.com
on 20 May 2010 at 8:50