diff --git a/main/inc/lib/formvalidator/Element/html_editor.php b/main/inc/lib/formvalidator/Element/html_editor.php index 49f6557fbf..2b106fba96 100644 --- a/main/inc/lib/formvalidator/Element/html_editor.php +++ b/main/inc/lib/formvalidator/Element/html_editor.php @@ -1,5 +1,5 @@ getAttribute('name'); $this -> fck_editor = new FCKeditor($name); - $this -> fck_editor->BasePath = api_get_path(WEB_PATH).'main/inc/lib/fckeditor/'; + $this -> fck_editor->BasePath = api_get_path(REL_PATH).'main/inc/lib/fckeditor/'; $this -> fck_editor->Width = $fck_attribute['Width'] ? $fck_attribute['Width'] : '990'; $this -> fck_editor->Height = $fck_attribute['Height'] ? $fck_attribute['Height'] : '400'; @@ -106,7 +106,7 @@ class HTML_QuickForm_html_editor extends HTML_QuickForm_textarea $this -> fck_editor->Config['LinkBrowserURL'] = $this -> fck_editor->BasePath . "editor/filemanager/browser/default/browser.html?Connector=connectors/php/connector.php&ServerPath=$upload_path"; - $this -> fck_editor->Config['EditorAreaCSS'] = api_get_path(SYS_PATH).'main/css/'.api_get_setting('stylesheets').'/course.css'; + $this -> fck_editor->Config['EditorAreaCSS'] = api_get_path(REL_PATH).'main/css/'.api_get_setting('stylesheets').'/course.css'; //for image $this -> fck_editor->Config['ImageBrowserURL'] = $this -> fck_editor->BasePath . "editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/php/connector.php&ServerPath=$upload_path";