Hi there people,
This is what I'm trying to do:
<span part='my-part'><%= rand %></span>
The thing is that that particular editor tag applies to a float field in my case, and for some reason the span is not getting any update. Other field types (for instance boolean or belongs_to fields) do work smoothly, but floats and so others call a "in_place_editor" definition that seems so complex to me :/
I'm working on a legacy application (Hobo 1.0) and I would like to know if any of you have any tip (or code example) about this particular case :)
* Use the update attribute: Hobo seems to parse it well, as the HTML "paints" the span tag correctly (shows a "hobo-update='my-part'" as it should be), but then nothing happens.
* Use a jQuery event hook: I tried to hook to the span with the "change" event but something seem to void my JS code. The code is there, in the spool of events for that span, but some (I guess) PrototypeJS code there voids it :(
My B plan for that editor tag is to override it completely with a custom tag definition (perhaps an input with a working update attribute), but before that I would like to hear a more celebrated voices than mine about this issue :D
Best regards, Ibon.