diff --git a/editors/ckeditor.inc b/editors/ckeditor.inc
index 95353b2..5e046aa 100644
--- a/editors/ckeditor.inc
+++ b/editors/ckeditor.inc
@@ -200,6 +200,8 @@ EOL;
  */
 function wysiwyg_ckeditor_settings($editor, $config, $theme) {
   $settings = array(
+    // Needed to make relative paths work in the editor.
+    'baseHref' => $GLOBALS['base_url'] . '/',
     'width' => 'auto',
     // For better compatibility with smaller textareas.
     'resize_minWidth' => 450,
