Try something like the below :
The key here is the 'before' section in the ajax submit, FCKEditor attaches
itself to the forms submit action but that isn't used with an ajax submit, so
you have to call the code to update the form field manually.
I found this methodology somewhere in the FCKEditor faq/documentation/user
group.
echo $ajax->submit('Save',array("update"=>"updatediv_".$uniq,
"class"=>"panelButt",
'indicator' => 'spinner_'.$uniq,
'before' => "for (instance in FCKeditorAPI.__Instances) {
field_name = instance.toString();
if (field_name.indexOf('".$uniq."')>=0) {
field_value =
FCKeditorAPI.GetInstance(field_name).GetXHTML();
$('ni".$uniq."').getInputs(null,'data[Newsitem][text]')
[0].value = field_value;
}
}"
)
);
On Tuesday 22 May 2007 09:52, [EMAIL PROTECTED] wrote:
> Can anyone help me to resolve this problem?
> Or can anyone suggests me a alternative method?
> Many thanks
>
> On 21 Mag, 12:15, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> > Instead if I used the $html->submit it works fine.
> >
> > On 21 Mag, 11:58, "[EMAIL PROTECTED]"
> >
> > <[EMAIL PROTECTED]> wrote:
> > > I have to useFCKEditorto edit posts in my application.
> > > I use a form with a textarea where I loadFCKEditor. The form is
> > > submitted with $ajax->submit.
> > > Myproblemis that the modifies that I do withFCKEditoris not passed
> > > to the controller.
> > > How and where must I use the "htmlspecialchars" to get the right
> > > result?
> > > Many Thanks
> > > Marco- Nascondi testo tra virgolette -
> >
> > - Mostra testo tra virgolette -
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---