In TinyMCE, the user is allowed to insert images. However, the images the user inserts on my site do not show up because of a path discrepancy. My modx installation is in
http://mysite.com/modx/ and the images inserted by the user show up with img tag src attributes like "images/file.jpg". Obviously, the path needs to be "/modx/images/file.jpg" in order for the image to actually show up.
A solution that would work (but is bad) would be to manually change each path to "/modx/images/file.jpg". I’m guessing there’s some way to concatenate the MODx base_path into the front of each image path or something.
Is there a good way to display images that the user inserted using TinyMCE?
Thanks,
Jason