On Dec 17, 8:48 am, Mean Mike <mcgra...@gmail.com> wrote:
> I haven't played with the samples . CKEDITOR API is well documented is
> just the jquery implementation that I'm having trouble with

Yes, the documentation for the plug-in seems pretty vague.  But I
couldn't really find the syntax above in the CKEditor documentation
either; I had to go to the downloaded examples.  I knew that I could
call

    something.on("eventName", func),

but I didn't know what I could call use for "something" or what values
were appropriate for "eventName".

> it seems that you would be right but I do I know when  $
> ("#fck").ckeditor() returns ?

It looks to me to be synchronous.  I haven't tested it, though.

> the problem seems to me that CKedtior.js isn't loaded until $
> ("#fck").ckeditor() is called so if I call anyhting before that is
> finished I get CKEDITOR is undefined.

Perhaps just this, then:

    $("#fck").ckeditor()
    CKEDITOR.on( 'instanceReady', function(event) {
        // your code here
    });

It's worth a try in any case.

  -- Scott

Reply via email to