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.
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:
[[{"type":"media","view_mode":"media_original","fid":"2","attributes":{"alt":"","class":"media-image"}}]]
Comments
Comment #1
aniebel CreditAttribution: aniebel commentedSorry, 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
Comment #2
aniebel CreditAttribution: aniebel commentedThis is true for the Media:Youtube. Shows thumnail in edit window but the content div is empty when viewing the node.
Comment #3
flosuter CreditAttribution: flosuter commentedHave you activated the following filtering options for the used text formats?
You might have to move it to the last place in the processing order.
Comment #4
aniebel CreditAttribution: aniebel commentedThanks 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).
Comment #5
aspilicious CreditAttribution: aspilicious commentedThe 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.
Comment #6
flosuter CreditAttribution: flosuter commentedIt's under Configuration>>Content Authoring>>Text Formats
then select the corresponding Text Format, i.e. Full HTML, Filtered HTML
Comment #7
aniebel CreditAttribution: aniebel commentedI don't see that option to set it.
Comment #8
aniebel CreditAttribution: aniebel commentedApologies, I repsponded prior to seeing #6 being posted. Have found that and retrying now.
Comment #9
aniebel CreditAttribution: aniebel commentedHappy to report that this works for me know. It's a little obscure... that requirement.
Also able to successfully view video. Thanks flosuter!
Comment #10
aniebel CreditAttribution: aniebel commentedComment #11
ronline CreditAttribution: ronline commented@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.
Comment #12
ronline CreditAttribution: ronline commentedChanging the issue status to "needs review"
Comment #13
Devin Carlson CreditAttribution: Devin Carlson commentedThe original has been fixed as per #9.
For issues with displaying videos inserted through WYSIWYG, please see #1283844: [meta] Improve WYSIWYG integration.
Comment #14
Vincent_t CreditAttribution: Vincent_t commentedI 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
Comment #15
steinmb CreditAttribution: steinmb as a volunteer commented