Tuesday, February 22, 2011

Re: FCK editor filling textarea with home page

I found the solution to this. The problem was that my site was in a
subdirectory, but the fck helper file was just pointing to the webroot
as if it was at the top level. Adding in the subdirectory to the fck
basepath solved the problem.

i.e. in the fck helper, in the constructor, I had
$this->BasePath = '/app/webroot/js/fckeditor/';
when it should have been
$this->BasePath = /subdirectory'/app/webroot/js/fckeditor/';

Hope this helps someone else!

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: