WYSIWYG editor don't show up after editng conf.inc.php!

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Dittohead
Posts: 23
Joined: Mon 26. Jul 2004, 01:07

WYSIWYG editor don't show up after editng conf.inc.php!

Post by Dittohead »

When I set the line for WYSIWYG editors to any of the 4 editors avilaible (oddly enough my conf.inc.php doesn't even list spaw as an option but I am using Release 1.1-RC4 22-06-2004) no WYSIWYG editor will show up where they used to in the back end.

Confusing and annoying. Any ideas?
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Re: WYSIWYG editor don't show up after editng conf.inc.php!

Post by DeXXus »

Dittohead wrote:When I set the line for WYSIWYG editors to any of the 4 editors avilaible (oddly enough my conf.inc.php doesn't even list spaw as an option but I am using Release 1.1-RC4 22-06-2004) no WYSIWYG editor will show up where they used to in the back end.

Confusing and annoying. Any ideas?
Since the archive ~does~ list spaw option:

Code: Select all

$phpwcms["wysiwyg_editor"]    = 1;        //0 = no wysiwyg editor, 1 = HTMLarea, 2 = FCKeditor, 3 = browser based, 4 = spaw
Your upload must have been corrupted -or- your editing has gone awry somewhere prior. The call to editor selection takes place in "login.php":

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;
$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();
	
	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+")) $_SESSION["wysiwyg_editor"] = 1;
				}
				break;
		case 4:	if($c->browser_is("ie5.5+")) $_SESSION["wysiwyg_editor"] = 4;
				break;		
	}
}
Dittohead
Posts: 23
Joined: Mon 26. Jul 2004, 01:07

Post by Dittohead »

I had to logout/log in again to get it to refresh, hwoever I can only use HTMLarea.

That's fine though.

Thanks!
Post Reply