Forums / General / fckstyles.xml

fckstyles.xml

Author Message

Carlos Revillo

Tuesday 13 June 2006 3:05:18 pm

hi. i'm working with ez 3.8.0 and fckeditor. i've added fck extension. when i want to edit a block xml attribute, fckeditor tries to load, but i get a javascript error.
"Error loading: /extension/fckeditor/FCKeditor/fckstyles.xml"

Then, in ie, fckeditor works as expected, but i don't like this javascript error.
any ideas?

Kristof Coomans

Tuesday 13 June 2006 11:39:52 pm

Hi Carlos

Are you using rewrite rules? I think you don't have direct access to the file you mentioned. Fill in the URL in the address bar of your browser and try to load it there. Does that work?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Carlos Revillo

Wednesday 14 June 2006 12:33:55 am

Hi.

Yes, I'm using rewrite rules to avoid index.php? in my urls.
Here they are...

<FilesMatch "(index\.php|\.(gif|html|css|jpe?g|png|ico|js|asf|avi|wmv|swf|xsl|jar|pdf|doc|))$">
order allow,deny
allow from all
Options Indexes FollowSymLinks Includes ExecCGI
</FilesMatch>

RewriteEngine on
RewriteRule !^index\.php.* - [C]
RewriteRule !^webdav\.php.* - [C]
RewriteRule !\.(gif|jpe?g|png|css|js|html)|var(.+)storage.pdf(.+)\.pdf?$ - [C]
RewriteRule (.*) /index.php?/$1 [L]

Kristof Coomans

Wednesday 14 June 2006 5:10:17 am

Put a rewrite rule like this at the top:

RewriteRule ^/extension/fckeditor/FCKeditor/.* - [L]

Does it work now?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Carlos Revillo

Wednesday 14 June 2006 10:34:33 am

thanks so much for your help, but still don't work.
that is my .htaccess file right now...

<FilesMatch "(index\.php|\.(gif|html|css|jpe?g|png|ico|js|asf|avi|wmv|swf|xsl|jar|pdf|doc))$">
order allow,deny
allow from all
Options Indexes FollowSymLinks Includes ExecCGI
</FilesMatch>

RewriteEngine on
RewriteRule ^/extension/fckeditor/FCKeditor/.* - [L]
RewriteRule !^index\.php.* - [C]
RewriteRule !^webdav\.php.* - [C]
RewriteRule !\.(gif|jpe?g|png|css|js|html)|var(.+)storage.pdf(.+)\.pdf?$ - [C]
RewriteRule (.*) /index.php?/$1 [L]

Carlos Revillo

Thursday 15 June 2006 12:42:18 pm

hi. finally i deleted all my rewrite rules from my .htaccess file. Now i don't get the javascript alert i was talking about.

But now, i have a cross-browser issue. While in Firefox, fckeditor loads the list of styles i see in fckstyles.xml, in Internet Explorer i only see a empty list, with no styles at all...

Hope you know what i mean. sorry for my english...

liu spider

Thursday 15 June 2006 7:53:03 pm

try to clear your IE cache

BTW: you may want to give SJSD a try

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

Carlos Revillo

Friday 16 June 2006 1:36:41 am

Thanks. That worked.
Btw, wich are the advantages of SJSD?