TinyMCE and [[root_url]] does not work

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am

TinyMCE and [[root_url]] does not work

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

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

Post 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...
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am

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

Post by nicmare »

i use it like this. but it causes errors as described above. test it...
Post Reply

Return to “CMSMS Core”