CKEDITOR is undefined when form is being loaded in model frame outside of /civicrm/ path
Since you are using 4.6, the answer is that you need to ensure templates/CRM/common/wysiwyg.tpl is being loaded and that the smarty variable $includeWysiwygEditor is set to true.

Or since you are hacking around CiviCRM anyway, just keep it simple and stick something like this in your page source:

&lt;script type="text/javascript" src="/path/to/civicrm/packages/ckeditor/ckeditor.js"&gt;&lt;/script&gt;