I have successfully uploaded an image from my local machine with the Media Browser button in the WYSIWYG UI and can view the image while editing however, it shows this on the page:

#11 vdo.png58.63 KBronline


aniebel’s picture

Sorry, here are my module versions:
Drupal Core - 7.8
Media - 7.x-1.0-beta5
File Entity 7.x-1.0-beta5
Wysiwyg 7.x-2.1
Chaos tools 7.x-1.0-rc1

aniebel’s picture

This is true for the Media:Youtube. Shows thumnail in edit window but the content div is empty when viewing the node.

flosuter’s picture

Have you activated the following filtering options for the used text formats?

Converts Media tags to Markup
This filter will convert [[{type:media... ]] tags into markup. This must be enabled for the WYSIWYG integration to work correctly with this text filter.

You might have to move it to the last place in the processing order.

aniebel’s picture

Thanks flosuter, where is this done? I have been able to view an image ONLY if I choose the Media Gallery style in the Display Options of this particular content type. I have gone into both File Styles and Media Styles (unsure what the difference is, to be honest) and configured there but when using any other style than that, I get an error on the page:

•Notice: Undefined property: stdClass::$uri in file_styles_styles_filter() (line 33 of /var/www/vhtdocs/userweb51319/html/drupal/sites/all/modules/styles/contrib/file_styles/file_styles.module).
•Notice: Undefined property: stdClass::$uri in media_youtube_file_styles_filter() (line 65 of /var/www/vhtdocs/userweb51319/html/drupal/sites/all/modules/media_youtube/includes/media_youtube.styles.inc).
•Notice: Undefined property: stdClass::$filemime in file_styles_styles_filter() (line 49 of /var/www/vhtdocs/userweb51319/html/drupal/sites/all/modules/styles/contrib/file_styles/file_styles.module).

aspilicious’s picture

The wysiwyg editor is linked to a filter: for example FULL HTML.
On the config pages where you edit the settings for that filter you have to enable the checkbox.

flosuter’s picture

It's under Configuration>>Content Authoring>>Text Formats

then select the corresponding Text Format, i.e. Full HTML, Filtered HTML

aniebel’s picture

I don't see that option to set it.

aniebel’s picture

Apologies, I repsponded prior to seeing #6 being posted. Have found that and retrying now.

aniebel’s picture

Happy to report that this works for me know. It's a little obscure... that requirement.

Also able to successfully view video. Thanks flosuter!

aniebel’s picture

Status: Active » Closed (works as designed)
ronline’s picture

58.63 KB

@aniebel. How did you get working the video.
In my case it work only with images.
For the video / flv files I get the default media icon.
Screenshot is attached.

ronline’s picture

Status: Closed (works as designed) » Needs review

Changing the issue status to "needs review"

Devin Carlson’s picture

Status: Needs review » Closed (works as designed)

The original has been fixed as per #9.

For issues with displaying videos inserted through WYSIWYG, please see #1283844: [meta] Improve WYSIWYG integration.

Vincent_t’s picture

Version: 7.x-1.0-beta5 » 7.x-1.2
Status: Closed (works as designed) » Active

I have the same problem, I can add a image frome the media browser, the picture is correctly displayed in the wysiwyg, but when I save the article, there is only the text tag.

The "Convert Media tags to markup" is checked fot Full HTML and Filtered HTML, the allowed tags includes <img>.

Any idea?

Drupal core 7.15
Media 7.x - 1.2
wysiwyg 7.x - 2.1
File entity 7.x - 1.2