CKEditor barebones basics
A few very basic points about CKEditor today.
Let’s say you have a typical textarea named foo and you want to turn it into a ckeditor object.
var editor = CKEDITOR.replace('foo');
That’s it. Of course there’s many more options and configurations you can add, but that’s the basic implementation.
But what if you want to refer to that instance later. In our case, it is called CKEDITOR.instances.foo . NOW you can do more with it later on, such as updating your text field with the contents of the editor object before saving back to the server.
$("#foo").val(CKEDITOR.instances.foo.getData());
Hoping that’s worth something to ya.