I haven't played with the samples . CKEDITOR API is well documented is just the jquery implementation that I'm having trouble with it seems that you would be right but I do I know when $ ("#fck").ckeditor() returns ?
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. Mike On Dec 16, 5:05 pm, Scott Sauyet <scott.sau...@gmail.com> wrote: > On Dec 16, 4:07 pm, Mean Mike <mcgra...@gmail.com> wrote: > > > now this works because by the time i press the button the ckeditor is > > load so now I'm trying to figure out when it is load so I can apply > > things to it once its loaded rather than have a user click a button. > > Man, there is a lot of documentation for CKEditor, but it seems hard > to find one's way around. Have you played with the _samples folder in > the distribution? In _samples/api.html, I found this: > > CKEDITOR.on( 'instanceReady', function(event) { > // your code here > }); > > My guess is that you can call this as soon as $("#fck").ckeditor() > returns, but I'm far from sure. > > Good luck, > > -- Scott