Last email, I swear. Add the following lines:
for ( instance in CKEDITOR.instances )
CKEDITOR.instances[instance].updateElement();
to the Hobo.ajaxRequest function (somewhere prior to Form.serialize). I
haven't had a chance to test this to ensure it won't error out when there
isn't an editor on the page, so ymmv.
On Tue, Jun 29, 2010 at 4:46 PM, Chris Apolzon <[email protected]> wrote:
> Sorry for the spam...I was mistaken, that technique would need to be
> adapted to CKEDITOR 3.0
>
>
> On Tue, Jun 29, 2010 at 4:43 PM, Chris Apolzon <[email protected]> wrote:
>
>> I've found the generic solution posted on the ckeditor forums:
>> http://cksource.com/forums/viewtopic.php?f=6&t=10986
>>
>>
>> On Tue, Jun 29, 2010 at 4:39 PM, Chris Apolzon <[email protected]> wrote:
>>
>>> I'm attempting to add some ajax part-update hobo-style forms to my
>>> app. I've managed to get everything working except for saving content
>>> in the CKEditor field. A quick glance at the Hobo.ajaxRequest method
>>> makes me think this might be a problem caused by the way prototype
>>> serializes forms (the call is Form.serialize(form)). Basically, the
>>> ckeditor field content that is sent to the backend is "" and the reset-
>>> form attribute on the form fails to reset the ckeditor content.
>>>
>>> Has anyone else experienced this? Do we need to explicitly check for
>>> a ckeditor field and add it to the params hash if found?
>>>
>>> Thanks.
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Hobo Users" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected]<hobousers%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/hobousers?hl=en.
>>>
>>>
>>
>
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" 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/hobousers?hl=en.