Talk:Xajax 0.2: Tips and Tricks: FCKeditor






Talk:Xajax 0.2: Tips and Tricks: FCKeditor

[edit] How I got FCK to work

I got it FCK to work with xajax by only changing the onclick value for my button.

<input type="button" onclick="var oFCKeditor = FCKeditorAPI.GetInstance('nameOfFCKEditor');
xajax_saveContent( xajax.getFormValues('nameOfForm') , oFCKeditor.GetXHTML() );" value="Save Data" />

This sends two values to your saveContent function. The first is your form (an array), the second is a string containing the source for your FCK editor. Note: the original FCK editor value is in the form when it is passed as an array. You will probably want to overwrite it with the new value. WebspecAdam 03:44, 23 July 2007 (EDT)