10
If you are trying to append HTML text, you could use the createFromHtml method like this for example:
var imgHtml = CKEDITOR.dom.element.createFromHtml("<img src=" + imageSrcUrl + " alt='' align='right'/>");
where imageSrcUrl is the image location and then you can insert it into the ckeditor source like this:
CKEDITOR.instances.body.insertElement(imgHtml);
There are other methods like insertHtml or insertText, you can check the CKEditor APIs for more details on these.