I did try the onFormCustomization, however it behaved the same way.
but I did skin this cat, here's my solution...
onEnterEditMode:function(x){
setTimeout(function(){
var h = $(form_id).descendants().first();
h.value = h.value.unescapeHTML();
}, 1);
}
It seems a bit hackish, but the setTimeout function works so fast that
the switch is almost imperceptible.
if there is a cleaner solution please let me know, but I'm going with
this for now...
On Jan 15, 3:33 pm, "Justin Perkins" <[EMAIL PROTECTED]> wrote:
> Checkout the onFormCustomization custom callback event, it looks like
> it should work for your needs.
>
> new Ajax.InPlaceEditor( 'some-id', 'some-url', {
> onFormCustomization:function(ipe, ipeForm){ ipe._controls.editor.value
> = 'something special'; } } );
>
> I've never personally used it, instead favoring loadTextURL, but it
> seems like it should work for your needs.
>
> -justin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---