I have a little problem with the WYSIWYG Editor.
I have firefox an IE running, but the WYSIWYG Editor does not show up in both browsers.
In the file config.inc.php I have
$phpwcms["wysiwyg_editor"] = 1; (but also tried 2-4) and nothing worked.
my current login.php looks like that
Code: Select all
//WYSIWYG EDITOR:
//0 = no wysiwyg editor (default)
//1 = HTMLAREA (compatible with IE5.5+ and Mozilla 1.3+ based webbrowsers)
$_SESSION["wysiwyg_editor"] = 0;
$_SESSION["dhtml_hiding"] = 1;
$phpwcms["wysiwyg_editor"] = intval($phpwcms["wysiwyg_editor"]);
if($phpwcms["wysiwyg_editor"]) {
//include_once ("./include/inc_ext/phpsniff/phpSniff.core.php");
include_once ("./include/inc_ext/phpsniff/phpSniff.class.php");
$c =& new phpSniff();
if($c->browser_is("mz1.3+") || $c->browser_is("ns7+") || $c->browser_is("fx")) {
$_SESSION["dhtml_hiding"] = 0;
}
switch($phpwcms["wysiwyg_editor"]) {
case 1: if($c->browser_is("ie5.5+") || $c->browser_is("mz1.3+") || $c->browser_is("ns7+") || $c->browser_is("fx")) $_SESSION["wysiwyg_editor"] = 1;
break;
case 2: if($c->browser_is("ie5.5+")) $_SESSION["wysiwyg_editor"] = 2;
break;
case 3: if($c->browser_is("ie5.5+")) $_SESSION["wysiwyg_editor"] = 4;
if(!$_SESSION["wysiwyg_editor"]) {
if($c->browser_is("mz1.3+") || $c->browser_is("ns7+") || $c->browser_is("fx")) $_SESSION["wysiwyg_editor"] = 1;
}
break;
case 4: if($c->browser_is("ie5.5+")) $_SESSION["wysiwyg_editor"] = 4;
break;
}
}
btw. phpwcms in not in the mainroot of my webspace. I created a folder "phpwcms" and put in all the files there. So I edited the path in the config
$phpwcms["root"] = "phpwcms";
Does this influence the function of the program?
tia
/derelch