diff --git a/editors/tinymce.inc b/editors/tinymce.inc
index f3a92dd..4e57ff5 100644
--- a/editors/tinymce.inc
+++ b/editors/tinymce.inc
@@ -81,7 +81,7 @@ function wysiwyg_tinymce_editor() {
  *   The installed editor version.
  */
 function wysiwyg_tinymce_version($editor) {
-  $script = $editor['library path'] . '/tiny_mce.js';
+  $script = DRUPAL_ROOT . '/' . $editor['library path'] . '/tiny_mce.js';
   if (!file_exists($script)) {
     return;
   }
diff --git a/wysiwyg.module b/wysiwyg.module
index 22130ea..dee11f0 100644
--- a/wysiwyg.module
+++ b/wysiwyg.module
@@ -857,7 +857,7 @@ function wysiwyg_get_all_editors() {
       'css path' => $editors[$editor]['path'] . '/css',
     );
     // Check whether library is present.
-    if (!($editors[$editor]['installed'] = file_exists($editors[$editor]['library path']))) {
+    if (!($editors[$editor]['installed'] = file_exists(DRUPAL_ROOT . '/' . $editors[$editor]['library path']))) {
       continue;
     }
     // Detect library version.
@@ -954,7 +954,7 @@ function wysiwyg_load_includes($type = 'editors', $hook = 'editor', $file = NULL
   $info = array();
   foreach (array_filter($file_list) as $module => $files) {
     foreach ($files as $file) {
-      include_once './' . $file->uri;
+      include_once DRUPAL_ROOT . '/' . $file->uri;
       $result = _wysiwyg_process_include($module, $module . '_' . $file->name, dirname($file->uri), $hook);
       if (is_array($result)) {
         $info = array_merge($info, $result);
