I need to display the content of doc file inside CKeditor. I read the content of doc file & passing it into an array line by line :
$rs = fopen("text.doc", "r");
            while ($line = fgets($rs, 1024)) {
                $this->data[] = $line . "<BR>";
            }
then I create an instance of CKeditor:
include_once("ckeditor/ckeditor.php");
    $CKeditor = new CKeditor();
    $CKeditor->basePath = '/ckeditor/';
    foreach ($this->data as $value) {
                 //what should I write here
    }
    $CKeditor->editor('editor1');
the CKeditor work right now & appear on my webpage .. but without any content ? what should I right inside the foreach to passing array content into the editor ? please help =(