Note this article is a couple of years old… I’ve given up on the folks who make fckeditor. We use Firefox now. (Jan 5, 2011)
1. Set the “this.EnableSafari = true ;” in “fckeditor.js”
2. Open the file “fckeditor_php5.php”
Then look for the function called “IsCompatible”
Add a new boolean “else if ( strpos($sAgent, ‘KHTML’) !== false )”
“$iVersion = (int)substr($sAgent, (72 + 27), 5) ;
return ($iVersion >= 3) ;”
Here’s the function below…
global $HTTP_USER_AGENT ;
if ( isset( $HTTP_USER_AGENT ) )
$sAgent = $HTTP_USER_AGENT ;
$sAgent = $_SERVER['HTTP_USER_AGENT'] ;
if ( strpos($sAgent, ‘MSIE’) !== false && strpos($sAgent, ‘mac’) === false && strpos($sAgent, ‘Opera’) === false )
$iVersion = (float)substr($sAgent, strpos($sAgent, ‘MSIE’) + 5, 3) ;
return ($iVersion >= 5.5) ;
else if ( strpos($sAgent, ‘Gecko/’) !== false )
$iVersion = (int)substr($sAgent, strpos($sAgent, ‘Gecko/’) + 6, 8 ) ;
return ($iVersion >= 20030210) ;
else if ( strpos($sAgent, ‘KHTML’) !== false )
$iVersion = (int)substr($sAgent, (72 + 27), 5) ;
return ($iVersion >= 3) ;
return false ;
NB for Safari 3.1 the line should be:
$iVersion = (int)substr($sAgent, (72 + 32), 3) ;
This line reads the HTTP_USER_AGENT and reads the version number as an integer.
Q. I have two versions of the same program installed and I need to use the older version to open the files. Iâ€™ve tried to set the default in the Finder but it always seems to open the newer version.
A. While you can select a file in the Finder and choose â€œGet Infoâ€. Then set the default application to open a file, your Mac may open the wrong applications that you have double-clicked. In the pre-Mac OS X days, your Macintosh would open the legacy file based on the â€œCreatorâ€ code in the Resource fork, which was used to store file resources such as a finder icon or image preview. Mac OS X has done away with the Resource Fork for compatibility reasons.
Without the applicationâ€™s â€œcreatorâ€ code, your Mac may have no idea what program should open the file. Like Windows and Unix systems, the Finder now uses the â€œdot file extensionâ€ in the file name to determine the file:application relationship. The Finder stores this information in itâ€™s â€œcom.apple.LaunchServices.plistâ€ file. If you cannot set the default application, this â€œplistâ€ may be corrupt. To fix it, Trash the file and the Finder will create a new one with the default relationships. However some applications such as those from Adobe, Microsoft and Quark will always tend open with the highest installed version. So dragging and dropping on the dock icon or choosing â€œOpen Withâ€ from the contextual menu may be only way to control the behavior.
Q. We have many files in QuarkXpress and our client has asked us to send them InDesign files. We tried to open the QuarkXpress files in InDesign but we get an error about a missing plug-in. How can we convert the files to InDesign format?
A. InDesign was able to open QuarkXpress files in the past, however InDesign can longer open files created by QuarkXpress version 6, 7 or the soon to be released QuarkXpress version 8. Well, not without help any way. You can â€œExport Layout as Projectâ€ and choose version 6. Then open the file in version 6 and â€œSave Asâ€ version 5. Afterwards open the file in QuarkXpress version 5 and save it again to get rid of any stray version 6 code. Down-saving a file this way means that your file will lose all of the newer effects in your files.
For around $200 per license you can use Markzwareâ€™s Q2ID v3 plug-in for InDesign to open any â€œCollectedâ€ QuarkXpress file. It works with 90 percent of the items in the file and preserves image links and font information. Q2ID v3 includes the plug-in for InDesign CS2 and CS3.
We are Markzware resellers, contact us if you would like to buy a copy of Q2ID
Q. Our client has recently started sending us Word files that we cannot open. They say they have the latest version of Word. Is there another way that they can save their files?
A. Your customer has recently upgraded to either Word 2007 on Windows or Word 2008 on Macintosh. Previous versions of Word and Excel stored the data that made up the file in a binary format. This made it difficult to work with, outside of Microsoftâ€™s suite. If you take a close look at the filename you may see that the file extension is â€œ.docxâ€. This is a new format from Microsoft based on â€œOffice Open XMLâ€ format â€“ making the files more portable. This means that more features can be contained in a single document using specialized document objects.
If you have the new Word installed you can avoid complications when sending out files by choosing â€œSave Asâ€ and selecting â€œWord 97- 2004â€ format. That will ensure that the file is saved in the â€œolder, more familiarâ€ file format. If you need to, you can choose â€œPreferencesâ€ from the â€œWord 2008â€ menu on your Mac and choose â€œWord 97 â€“ 2004â€ format from the Word tab. On a PC, click the â€œOffice Buttonâ€, go to â€œWord Optionsâ€ and choose â€œWord 98-2003â€ format.
Microsoft has also made file converters available for converting â€œ.docxâ€ files on a Mac or PC without the new Office Suite. On a PC you can install the â€œOffice Compatibility Packâ€ (http://support.microsoft.com/kb/924074). For Macintosh you can download the Open XML converter at (http://www.microsoft.com/mac/downloads.mspx)