FCKEditor

A place for users and developers of the Xataface to discuss and receive support.

FCKEditor

Postby rosekolodny » Sun Oct 04, 2009 6:23 pm

I've started having problems using the Web Page Module (and anywhere FCKEditor is needed) in Firefox 3.0.14 because FCKEditor wants to get downloaded to my computer instead of running embedded in the page. It's fine in Explorer 6, but has the same problem in Safari 3.2.

I'm not sure if this is even worth your time, if the future of the Xataface project will involve a switch to TinyMCE.

Beth
rosekolodny
 
Posts: 9
Joined: Sat Feb 07, 2009 11:25 pm

Postby shannah » Fri Oct 16, 2009 7:28 am

What version of Xataface are you using? Perhaps we need to update to a more recent FCKeditor.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Fri Oct 16, 2009 7:37 am

On second thought this might be an issue with your setup. I'm running Firefox 3.0.14 and Safari 4 and am not having this problem with any of my installations. Check your server error logs to see if it offers any clues... still may want to try upgrading to latest xataface.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: FCKEditor

Postby rosekolodny » Sun Dec 19, 2010 11:50 pm

I just figured out that it's something to do with my .htaccess file. When I delete .htaccess, the editor works fine. Code is as follows:

Code: Select all
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?-table=n1_pages&-action=page&page_path=$1&%{QUERY_STRING}

AddType application/x-httpd-php .html


Doesn't seem too special to me. But I'm not wise in the ways of these things. :-)
rosekolodny
 
Posts: 9
Joined: Sat Feb 07, 2009 11:25 pm

Re: FCKEditor

Postby shannah » Mon Dec 20, 2010 11:44 am

Your AddType directive seems to cause .html pages to be parsed by the PHP parser. First of all, directing your webserver to treat all .html files as PHP files may cause extra load or even open security holes (although I can't think of a likely scenario for the latter off the top of my head).

Second, if your server is set with short_open_tags on for PHP (i.e. it will accept <? as an abbreviation for the full <?php open tag, then this could cause problems with XHTML files whose first line begin with <?xml ...

I suspect that this is what is happening. FCKEditor likely loads a number of XHTML files via ajax, but your webserver is trying to parse the xml as PHP... which causes a problem.

Solution: Remove the AddType directive.
If you have specific pages with the .html extension that you need to parse with php, change their extension to .php, then use mod_rewrite to rewrite requests for the .html pages to the new locations.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: FCKEditor

Postby rosekolodny » Mon Dec 20, 2010 3:21 pm

Thanks - I'll make those changes and go read up on it. :-)
rosekolodny
 
Posts: 9
Joined: Sat Feb 07, 2009 11:25 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 19 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved