Can't add image in Composer

Permalink 1 user found helpful
I can't for the life of me get an image added via the Composer feature.

I have created a textarea attribute w/ the Rich Text - Advanced input format, and added it to the composer for a certain page type, and while it works to a certain extent, every time I try to add an image, its address is broken.

I also tried adding a block to the page type via the page type defaults, and then writing a new page w/ the composer. I got the same problem.

Has anyone successfully added images in a textarea with the Composer? What am I missing here? Is this perhaps a bug?

I'm about tearing my hair out.

Thanks,
Jeremy

 
jcdesign replied on at Permalink Reply
Hmm. Okay, when I add a text link to another page, using the in-context editor, or the composer, the link is screwed up, e.g:

<a href="http://local/test/c5//test/c5/index.php?cID=138">Link</a>


It's including the site path twice. This MAY be related?

That said, the SRC generated for the image in the composer doesn't suffer from the same issue:
src="/{site}/index.php/download_file/view_inline/31/"


So I know I've bungled something. But what? A fresh install doesn't seem to have either problem.
jcdesign replied on at Permalink Reply
jcdesign replied on at Permalink Reply
Anyone know about this? How would I get the image, added in via a textarea attribute, to show up correctly?

If you go tohttp://waterinthewest.stanford.edu/cgi-bin/groundwater/learn/model/... and click on the "Lake" button on the model, you'll see content pop up. There should be an image there. The SRC of the image ishttp://waterinthewest.stanford.edu/cgi-bin/groundwater/index.php/do... which returns a file not found error.

Is this the correct code to be output at this point? Shouldn't it perhaps be creating an actual link to a file? I'm guessing that JavaScript is somehow failing me?

Any help would be greatly appreciated. Thank you.