diff --git a/boxes.module b/boxes.module
index 8de7978..8585cce 100644
--- a/boxes.module
+++ b/boxes.module
@@ -237,6 +237,14 @@ function boxes_page_alter(&$page) {
  * an ajax submission and handle it.
  */
 function boxes_footer() {
+
+   // if one is useing the ckeditor, the base path needs to be set on the orginal
+   // page load, or ckeditor will setting in incorrectly to the root
+   // while this is load on everypage it is just a single set of a variable.
+   if(module_exists("wysiwyg") && ($editor = wysiwyg_get_editor('ckeditor'))) {
+     drupal_add_js("window.CKEDITOR_BASEPATH = '/{$editor['library path']}/'", 'inline');
+   }
+
   // Besure the page isn't a 404 or 403.
   $headers = drupal_get_http_header();
   foreach ($headers as $header) {
