Hi,
When I given a link to youtube video while generating events or any other content, then after saving the content its not visible. Even in preview It doesn't show up. I have checked the permissions as well.

CommentFileSizeAuthor
#13 entity-embed-2162521-13.patch11.77 KBDevin Carlson
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

amittarkar’s picture

Component: Code » Media
Leeteq’s picture

Category: Bug report » Support request
Priority: Critical » Normal

What kind of link? An embed code?
In which field are you saving it?
If in the body text field - is the input format set up to handle this?
Please provide an example link and state where you put it.

heyyo’s picture

I have exactly the same bug.
If I insert a video URL (Youtube, Vimeo itreid both) inside the Media Popup of Ckeditor, Oembed does its job properly, I could the see video inside my body field with CKEditor, but as soon as I save my node ( or preview or Switch to plain text editor) the markup of the video is deleted.
Inclusion of Images from URL are working properly, .
Inclusion of Iframe is working too.
So it seems to be related only to OEmbed.

i didn't change anything in my commons settings, it's a fresh commons 7.x-3.20

In Filtered HTML I have:
Convert Media tags to markup

In Ckeditor
Plugin for inserting images from Drupal media module is checked and in the toolbar
Advanced content filter is disabled

heyyo’s picture

Priority: Normal » Critical
TuWebO’s picture

Hello,
I'm having similar issue for images, just when the format filter selector (select list with the format choices bellow the body field) is not present.
I've posted one patch that solve that scenario in my case.
#2383255: No tagmap generated if "Text format" filter selector not present in element form.

Maybe it could help someone.

heyyo’s picture

Hi @Tuwebo,
Thanks for your help, I will check to your proposed patch, to see how you dealed with this related error.

Could you tell me if you have the same bug ?
Do you succeed to include youtube or vimeo videos in your node by just specifing an URL in Media pop up ?

TuWebO’s picture

Hi heyyo,
I also have the same bug, exactly as amittarkar mentioned in the issue summary.
I will try to trace it and post something here if I found it.

TuWebO’s picture

Hi,
I've found this issue #1956778: Ckeditor 4.1 ACF, looks like it is related, since the proposed solution in Drupal Answers solved the problem, at least for me.
Just adding config.allowedContent = true; in "config/content/ckeditor/edit/xxxx" -> Advanced configuration -> Custom JavaScript configuration" solved it.

@heyyo could you try it and see if it works for you. Meybe this issue is duplicated and has nothing to do with D. commons.

heyyo’s picture

I also saw this post on Drupal Answers, I tried it again but unfortunatly it's still not working for me.
I cleared cache after saving the custom javascript settings.

I tried this with Filtered HTML and Full HTML, but I have the same result.

heyyo’s picture

I found another issue talking about it, this setting apparently doesn't work for everyone.

It seems to be related to empty tags, see https://www.drupal.org/node/1950498#comment-7583491

heyyo’s picture

@Tuwebo could you give me an example of youtube URL or vimeo URL that works for you ?

heyyo’s picture

I finally made it, by installing also Wysiwyg in addition to CKeditor.
It's working properly, the only thing is that I don't see the video inside the CKEditor bu only the word IFRAME. But after saving the node the iframe is correctly rendered.

Devin Carlson’s picture

Status: Active » Needs review
FileSize
11.77 KB

With a backport of Entity Embed now available, we should now move over from Media: WYSIWYG which has a number of known issues due to its legacy and support for multiple WYSIWYG editors.

We should leave the existing Media Token to Markup filter enabled for existing sites but only support Entity Embed for embedding media going forward.

Devin Carlson’s picture

Status: Needs review » Fixed

Tested #13 and committed to Commons 7.x-3.x.

  • Devin Carlson committed f70bc04 on 7.x-3.x
    Issue #2162521 by Devin Carlson: Transitioned to the Entity Embed module...

Status: Fixed » Closed (fixed)

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

Doronro’s picture

hi,
perhaps someone could point me in the right direction? it looks like it should work "out of the box" but i've been going around in circles for a few days and still can't embed. there must be some configuration that i'm missing or doing wrong.
the setting mentioned above (Advanced configuration -> Custom JavaScript configuration) i can't even find
i'd like to allow users just to paste a link and have it preview. it seems this has become quite standard these days and it's what people expect...
any help greatly appreciated,,
d

...commons-7.x-3.46