[jQuery] Re: jquery.ckeditor non functional?

2010-01-03 Thread Met00 - Met00Cigar
working solution...

dump jquery.ckeditor


change

 $('#btn-ajax').click(function(){
$('#form1').ajaxSubmit(options);
 });

to

 $('#btn-ajax').click(function(){
aaa = $.ckeditor.instance("editor_kama").getData();
$('#editor_kama').val(aaa);
$('#form1').ajaxSubmit(options);
 });

works...

Too bad jquery.ckeditor didn't.


[jQuery] Re: jquery.ckeditor non functional?

2010-01-03 Thread Met00 - Met00Cigar
Clarification

I wrote:

> Now, I can get the CKEditor to set up IF I add the following...
> CKEDITOR.replace({skin: 'kama' })"

Let me clarify

### Remove from javascript ###
> var CKEDITOR_BASEPATH = 'http://www.domain.com/ckeditor/';
> $(function(){
>   $.ckeditor.config = {skin:
> 'kama' };
>         // initialize
>  $('textarea.cke1').ckeditor();});
>
> 
###

### Change
> 
> Message
>  rows="10">Hi, this is your editor area.
> 
// add the following

//

> 
> 
>       style="float:right"/>
> 

###

Now I have the CK editor working, but the text is returned plain. I
can by adding this:
alert($.ckeditor.instance("editor_kama").getData());
to showRequest see that the text is showing the correct complete HTML
of the text area, But the text being picked up and in the query is the
display'd text, but the HTML text. (showRequest lso includes

var queryString = $.param(formData);
alert('About to submit: \n\n' + queryString);

so I can see what is being sent to the server before it sends the
information)

"Hi, this is your editor area."

not

"Hi, this is your editor area."  even though getData
is showing that the HTML text is available in the DOM.