Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Facebook image issue with how tinymce formats img info HELP


Reply


509 Views

Avatar
Hello_electro

Community Member, 80 Posts

6 August 2011 at 1:23pm

Hey everyone.

so i am coming across a weird issue.

It seems ot be related to this article: http://ansonalex.com/troubleshooting/fix-articles-linked-on-facebook-dont-display-thumbnails-images/

when I post my website page url in facebook, the article content appears but the images to the left wont show up. What seems to be the problem is that organization of tag information inside the img tag is causing facebook to not like it. specifically it is adding the resized height and width info after the img src.

example:

<img class="right" src="site url for image here.img" alt="" title="" width="120" height="219"/>

has anyone had this issue? any thoughts how i can get tinymce to reorder this?

I know I could do the following:

1. resize the image exactly how I want it so the height and width attributes are not there.

but obviously this causes more work.

Any thoughts about this? thanks!