diff --git a/js/ckeditor_extended.js b/js/ckeditor_extended.js
index 53a42f6..655aa39 100644
--- a/js/ckeditor_extended.js
+++ b/js/ckeditor_extended.js
@@ -30,6 +30,13 @@ Drupal.wysiwyg.editor.init.ckeditor_extended = function(settings) {
       }
     }
   }
+
+  // Ensure CKEditor uses the proper base path for the editor. If CKEditor is
+  // loaded dynamically (e.g. in Views popups), the automatic base path is
+  // incorrect.
+  if (CKEDITOR) {
+    CKEDITOR.basePath = Drupal.settings.basePath + Drupal.settings.ckeditor.modulePath + '/lib/ckeditor/';
+  }
 };
 
 
