Page 1 of 1

TinyMCE and [[root_url]] does not work

Posted: Thu Sep 16, 2010 9:40 am
by nicmare
having issues with the root_url var and tinymce in conjunction with cms_stylesheet.
the stylesheet link for tinymce is

Code: Select all

http://www.domain.com/cmsms/modules/TinyMCE/stylesheet.php?templateid=24&mediatype=screen&bogus=1284629678
and the content looks like this:

Code: Select all

.footer .group {
  background:url(http://www.domain.com/cmsms/[[root_url(http://www.domain.com/cmsms/]/images/bg_footer.gif)}
obviously theres something wrong with the parsing of root_url.
CMSms Version: 1.8.2

Re: TinyMCE and [[root_url]] does not work

Posted: Sun Oct 03, 2010 6:09 pm
by Dr.CSS
Your style sheet should have url([[root_url]]/uploads/images/image.jpg) if the image is in uploads/images, if not adjust accordingly, you can also use (/uploads/images/image.jpg)...

This of course is assuming you are using the {cms_stylesheet} tag...

Re: TinyMCE and [[root_url]] does not work

Posted: Sun Oct 03, 2010 6:13 pm
by nicmare
i use it like this. but it causes errors as described above. test it...