Closed (fixed)
Project:
Media: YouTube
Version:
7.x-1.0-alpha4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Mar 2011 at 21:06 UTC
Updated:
2 Jun 2011 at 00:02 UTC
I have enabled the module and was successful in getting a youtube video to show in the WYISWYG Editor (using tinymce). After I save the page and go to view it I see this:
';
if (Drupal.settings && Drupal.media_youtube) {
Drupal.settings.media_youtube = Drupal.settings.media_youtube || {};
Drupal.settings.media_youtube["media_youtube_4uVVnKt2cIc_1"] = {};
Drupal.settings.media_youtube["media_youtube_4uVVnKt2cIc_1"].width = 480;
Drupal.settings.media_youtube["media_youtube_4uVVnKt2cIc_1"].height = 360;
Drupal.settings.media_youtube["media_youtube_4uVVnKt2cIc_1"].video_id = "4uVVnKt2cIc";
Drupal.settings.media_youtube["media_youtube_4uVVnKt2cIc_1"].fullscreen = true;
Drupal.settings.media_youtube["media_youtube_4uVVnKt2cIc_1"].id = "media_youtube_4uVVnKt2cIc_1_iframe";
Drupal.media_youtube.insertEmbed("media_youtube_4uVVnKt2cIc_1");
}I have "Converts Media tags to Markup" enabled for my filter in text formats.
When I insert images they work.
I am sure I am just overlooking something simple.
Thanks.
Comments
Comment #1
jagermonster commentedat /admin/config/content/formats/filtered_html
or whatever fileter you are working with and using the media module
make sure that Limit allowed HTML tags option is disabled
Comment #2
jagermonster commentedotherwise you can change the allowed tags to allow the tags required by the youtube object
Comment #3
effulgentsia commentedYou can also order the weights such that the "Converts Media tags to Markup" is after "Limit allowed HTML tags" (see https://skitch.com/effulgentsia/fyf6b/filtered-html-localhost). Please set this issue status back to active if none of these suggestions work for you.