I am also experiencing a related issue. I use websitebaker CMS and
fckeditor as the wysiwyg editor. Since upgrading to 2.14, all edit
boxes show source code, and there is no fckeditor panel or
functionality.
The cause of the problem is that between SM 2.13 and 2.14, the format of
the HTTP_USER_AGENT string was changed, from Gecko/yyyymmdd to Gecko/17.0.
The browser check in FCKeditor only checks for the date format, so it
fails for the new format and FCKeditor doesn't believe that the browser
will support the required features.
Unless the SeaMonkey team changes the HTTP_USER_AGENT format back again,
the problem has to be fixed in FCKeditor.
In the FCKeditor directory on your web host, you'll find these two files:
fckeditor_php4.php
fckeditor_php5.php
In both of these files, you'll find this code:
else if ( strpos($sAgent, 'Gecko/') !== false )
{
$iVersion = (int)substr($sAgent, strpos($sAgent, 'Gecko/') + 6,
8) ;
return ($iVersion >= 20030210) ;
}
You need to change this code to something like this:
else if ( strpos($sAgent, 'Gecko/') !== false )
{
// $iVersion = (int)substr($sAgent, strpos($sAgent, 'Gecko/') +
6, 8) ;
// return ($iVersion >= 20030210) ;
$gecko = substr($sAgent, strpos($sAgent,'Gecko/') + 6);
$iVersion = substr($gecko,0,strpos($gecko,' '));
if ( (int)$iVersion > 20030210 ) return true;
if ( (float)$iVersion >= 17.0 ) return true;
}
This will allow FCKeditor to accept either type of HTTP_USER_AGENT
string, and will fix the problem.
This information was sent to me by a kind gentleman by the name of
Francis Stevens.
Regards,
Peter
_______________________________________________
support-seamonkey mailing list
[email protected]
https://lists.mozilla.org/listinfo/support-seamonkey