Under full HTML I get:
[[{"type":"media","view_mode":"media_large","fid":"101","attributes":{"alt":"","class":"media-image","typeof":"foaf:Image"}}]]

Under Filtered HTML I have Converts Media tags to Markup checked, yet it shows up blank.

What am I doing wrong... Perhaps there should be a Media Tag parser instead of a converter...

Comments

kehan’s picture

I had this issue and then found out that I had to allow the Only local images are allowed. tag in my filtered html filter settings, and presto my images were working again. Kind of circumvents the need for input filters tho cos then users can add their own Only local images are allowed. tags.

Ryanbach’s picture

What tag do I need to allow, if you don't mind me asking?

JacobSingh’s picture

Category: bug » support

I don't think you should have to allow the tag. The point is that people can add media using these tokens instead of using img tags, etc.

Have you tried the media dev profile?

Ryanbach’s picture

I am trying it, but I get this error (after I drush dl media_dev:) after running this command:

drush make media_dev.make media_dev
file_get_contents(media_dev.make): failed to open stream: No such [warning]
file or directory drush_make.utilities.inc:379
Invalid or empty make file: media_dev.make [error]
An error occurred at function : drush_drush_make_make_validate [error]

Ryanbach’s picture

Version: 7.x-1.0-beta3 » 7.x-1.x-dev
flits’s picture

Try re-ordering the Filter processing order at: admin/config/content/formats/filtered_html

I changed it to the following:
* Convert URLs into links
* Limit allowed HTML tags
* Converts Media tags to Markup
* Convert line breaks into HTML
* Correct faulty and chopped off HTML

so by limiting the allowed tags, before we insert Only local images are allowed. we don't end up filtering out our own markup.

Ryanbach’s picture

Status: Active » Fixed

I found the fix, I needed to add the img tag. So I edited this page to reflect that: http://drupal.org/node/703338

lelizondo’s picture

@Ryanbach what about #6? is it also necessary to order the filters processing in that order?

kehan’s picture

Well this actually worked as intended. The ordering of filters is vitally important (don't know why I didn't remember this from years ago). I have removed the Only local images are allowed. tag from my allowed values, but put the media filter after allowed tags filter and images working fine.

Status: Fixed » Closed (fixed)

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

salytwo’s picture

Issue summary: View changes

I tried this reordering but with no success