When I view the source of my html page, the html image tags are completely missing, as if they have been stripped/filtered out. When I am in as admin, using ckeditor, I can see the images and lets me work with them (it can find them in the files folder). I can see the images when I am editing...but if I click on preview, the images do not show up then either.

This is not happening for images that I have hardcoded into a php file, or the images I link to in my theme (ie my logo shows up fine). It only occurs for images I have embedded into the body of a page or story node.

I have changed my input format, disabled ckeditor, and triple checked my paths, but they do not seem to be the issue...as the images are not failing to load because of a bad path, it is that the image tag is completely missing from the html that drupal generates.

Any ideas for me??

Comments

darrenmothersele’s picture

Have you added Only local images are allowed. to the allowed tags in HTML filter configuration under Administer -> Settings -> Input formats?

Also, you could try changing the Input format to "Full HTML", to see if the issue is caused by something other than the input filter.

TechMosaic’s picture

That was it. Thanks.
I never had touched those settings before...seems funny that the allowed ones would not include img, but I did start the page by cutting and pasting in from my old site. I thought that html filtering would happen as I saved the content, and that I would then see that it had been cut by viewing the raw source in the drupal page editor. Instead, it must happen as the page is presented...since the img tag was pasted in fine...just not presented.

Anyway, thanks a ton for helping me on this.

markosaurus’s picture

I had the same problem, and this post helped me fix it, so thanks.

But now it's putting the image in at full width and filtering out the css I apply through ckEditor.

Any thoughts?

markosaurus’s picture

This was being filtered out by the input filter, it was set to filter html tags out if they were dangerous.
Not an issue in this case as only trusted users have permissions ot publish.