Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
drupalninja99 CreditAttribution: drupalninja99 commentedAre 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.
Comment #2
linwiz CreditAttribution: linwiz commentedI 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?
Comment #3
drupalninja99 CreditAttribution: drupalninja99 commentedHa 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
Comment #4
drupalninja99 CreditAttribution: drupalninja99 commentedok 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!
Comment #5
linwiz CreditAttribution: linwiz commentedThat 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.
Comment #6
drupalninja99 CreditAttribution: drupalninja99 commentedSetting to reviewed
Comment #7
linwiz CreditAttribution: linwiz commentedI've tested this with the 2012-Apr-18 release, and it does work as it should.
Comment #8
drupalninja99 CreditAttribution: drupalninja99 commentedChanging to fixed, will get pushed to 1x here pretty soon