Page 1 of 1

WYSIWYG in Firefox 1.0PR

Posted: Wed 15. Sep 2004, 15:41
by cyrano
Did someone used firefox 1.0PR and WYSIWYG-Editor, hack does not work anymore.

regards
cyrano

Posted: Wed 15. Sep 2004, 22:38
by Sander
Yes I can use the WYSIWYG editor in Firefox 1.0 PR.

Posted: Wed 15. Sep 2004, 22:56
by cyrano
Hi Sander,

can you give me some hints what you did changed or setup to use it?

Which number you have set in conf.php for editor?
and changed the login.php with the addition of "fx"?

kind regards
cyrano

see this thread

Posted: Thu 16. Sep 2004, 11:34
by madmus

Posted: Thu 16. Sep 2004, 12:27
by cyrano
sorry made this, doesn't work on xp firefox 1.0pr.

i wrote that it is fixed, but this was on firefox 0.93 before i installed firefox 1.0pr.

regards

quick and dirty

Posted: Fri 17. Sep 2004, 06:21
by madmus
i made change this in login.php

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;

works on my firefox 1.0 PR

Posted: Fri 17. Sep 2004, 10:44
by cyrano
hi madmus,

thank you for give the code here.

I tried again, but no good results:

my code:

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+")) {
		$_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+")) $_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;
	}
}

wysiwyg-editor in conf.inc.php is set to "1".

did i set something wrong?
regards

Posted: Fri 17. Sep 2004, 11:03
by madmus
mine is like this

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;		
	}
}


Posted: Fri 17. Sep 2004, 11:08
by cyrano
madmus thank you again, i set in your code and it works - think i made a mistake in coding.

thank you for your advice - and have a fine sunny day :-)
regards

hehe

Posted: Sat 18. Sep 2004, 08:17
by madmus
:wink: ur welcome