hi there!
i already spent several hours of trying and google-ing, but i did not manage to get ckeditor to work with my mod rewrite...
thing is - i use mod rewrite for clean urls meaning that i redirect EVERYTHING to a single file that takes care for everything else.
obviously, there need to be some exclusions for images, stylesheets and... who guessed it: java scripts
and this seems to f*** around with ckeditor...
here's what my mod-rewrite does:
ckeditor is stored in a folder named "ckeditor" in my web root. i added some alert('i was loaded'); to the ckeditor.js - what actually fires up. BUT: when i try to replace a textarea with
nothing happens... in fact, the web-developer-plugin (4 firefox) tells me:
...
well... i tried the fix for alternate paths
what didn't help either...
right now i'm out of ideas and don't know how to get this code working... is there anyone out there with a similar problem willing to help?
thanks in advance!!!
i already spent several hours of trying and google-ing, but i did not manage to get ckeditor to work with my mod rewrite...
thing is - i use mod rewrite for clean urls meaning that i redirect EVERYTHING to a single file that takes care for everything else.
obviously, there need to be some exclusions for images, stylesheets and... who guessed it: java scripts
and this seems to f*** around with ckeditor...
here's what my mod-rewrite does:
rewriteEngine On RewriteBase / RewriteRule ^(.*)/(.*(\.jpg|\.jpeg|\.gif|\.png))$ images/$2 [L,QSA,NC] RewriteRule ^ckeditor/(.*)$ ckeditor/$1 [L,QSA,NC] RewriteRule ^(.*)/(.*\.js)$ script/$2 [L,QSA,NC] RewriteRule ^(.*)/(.*\.css)$ style/$2 [L,QSA,NC] #(further mod-rewrite code for normal php-files and so on...)
ckeditor is stored in a folder named "ckeditor" in my web root. i added some alert('i was loaded'); to the ckeditor.js - what actually fires up. BUT: when i try to replace a textarea with
<script type="text/javascript"> CKEDITOR.replace( 'my_textarea' ); </script>
nothing happens... in fact, the web-developer-plugin (4 firefox) tells me:
CKEDITOR is not defined
...
well... i tried the fix for alternate paths
<script type="text/javascript"> var CKEDITOR_BASEPATH = '/ckeditor/'; </script>
what didn't help either...
right now i'm out of ideas and don't know how to get this code working... is there anyone out there with a similar problem willing to help?
thanks in advance!!!
Re: Getting ckeditor to work with mod_rewrite...
Re: Getting ckeditor to work with mod_rewrite...
RewriteRule ^ckeditor - [NC,L]
Re: Getting ckeditor to work with mod_rewrite...
thanx! this actually works for me with the ckeditor-folder in my document-root.
on small addition for you, if you want to change the location of your ckeditor-folder:
http://xenonite.net/news/ckeditor-mit-m ... ite-nutzen