Im using OpenChurch profile, Trying to add a image to a block using "add media", but I get this code instead. wysiwyg shows image properly, but the actual block does not. Im not sure whats wrong, There was an image there from install, but i tried to replace it with my own and it didn't work. insert/edit image works fine on the other hand.

[[{"type":"media","view_mode":"media_preview","fid":"74","attributes":{"alt":"","class":"media-image","height":"180","style":"float: right;","typeof":"foaf:Image","width":"180"}}]]

Comments

drupalninja99’s picture

Are you using 2x dev? I think we are supporting IMCE's image uploader out of the box, I might need to disable the media button.

linwiz’s picture

I am using 2.x dev. I notice that the "add media" button also has options to add videos from youtube etc. i assume that functionality is somewhere besides the media button you're thinking about disabling?

drupalninja99’s picture

Status: Active » Needs work

Ha its funny bc I didnt even realize I had this enable. The media button is pretty cool. You just need to go to admin/config/content/formats/full_html and enable this option "Convert Media tags to markup". I am going to add this to the install

drupalninja99’s picture

Status: Needs work » Needs review

ok got this working in head. I added a hook_update_N() so you could just go to update.php and if you have time also test a full install with drush si -y openchurch.

Thanks for finding this!

linwiz’s picture

That did the trick. I can test it once it hits the downloads on the project page, until then its out of my reach, i can't use drush, I dont have ssh access. enabling "Convert Media tags to markup" works fine though.

drupalninja99’s picture

Status: Needs review » Reviewed & tested by the community

Setting to reviewed

linwiz’s picture

I've tested this with the 2012-Apr-18 release, and it does work as it should.

drupalninja99’s picture

Status: Reviewed & tested by the community » Fixed

Changing to fixed, will get pushed to 1x here pretty soon

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.