From e831864035659253d50564dede2bf043beb00afe Mon Sep 17 00:00:00 2001
From: Josh Caldwell <jcaldwell@phase2technology.com>
Date: Fri, 2 Mar 2012 08:33:01 -0500
Subject: [PATCH] Fixed issue where CKEditor was broken when site install was
 in a subpath

---
 boxes.module |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/boxes.module b/boxes.module
index ace0af3..eaae276 100644
--- a/boxes.module
+++ b/boxes.module
@@ -242,7 +242,8 @@ function boxes_footer() {
    // page load, or ckeditor will set it incorrectly to the root.
    // while this is loaded on every page 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');
+     $base = base_path();
+     drupal_add_js("window.CKEDITOR_BASEPATH = '$base{$editor['library path']}/'", 'inline');
    }
 
   // Besure the page isn't a 404 or 403.
-- 
1.7.4.4

