2011-06-22, 07:29:59
(This post was last modified: 2011-06-22, 07:34:54 by simpliciteau.)
I just ran in to this problem too and I finally figured out a reasonable workaround with a little help from this forum post (http://get-simple.info/forum/topic/487/c...-ckeditor/)
in edit.php the default baseHref for CKEditor has been set $SITEURL
The actual problem isn't with CKEditor but with the image browser which resolves the image path separately. What you need to do is change line 23 in filebrowser.php to match the default that is set in edit.php, like so:
previous line 23:
$sitepath = suggest_site_path();
new line 23:
$sitepath = $SITEURL;
Now when I set my site url to '/', I get the correct image links when I drop them in to CKEditor with the browse tool. This saves having to do the tedious batch replace method suggested by yojoe
Edit: And when you do that, any baseHref that you may have added to the CKEditor config file will now be applied as expected since the image url no longer contains http://yourdomain.com/...
in edit.php the default baseHref for CKEditor has been set $SITEURL
The actual problem isn't with CKEditor but with the image browser which resolves the image path separately. What you need to do is change line 23 in filebrowser.php to match the default that is set in edit.php, like so:
previous line 23:
$sitepath = suggest_site_path();
new line 23:
$sitepath = $SITEURL;
Now when I set my site url to '/', I get the correct image links when I drop them in to CKEditor with the browse tool. This saves having to do the tedious batch replace method suggested by yojoe
Edit: And when you do that, any baseHref that you may have added to the CKEditor config file will now be applied as expected since the image url no longer contains http://yourdomain.com/...