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

jagermonster’s picture

at /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

jagermonster’s picture

otherwise you can change the allowed tags to allow the tags required by the youtube object

effulgentsia’s picture

Status: Active » Fixed

You 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.

Status: Fixed » Closed (fixed)

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