Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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.
Comment | File | Size | Author |
---|---|---|---|
#13 | entity-embed-2162521-13.patch | 11.77 KB | Devin Carlson |
Comments
Comment #1
amittarkar CreditAttribution: amittarkar commentedComment #2
Leeteq CreditAttribution: Leeteq commentedWhat 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.
Comment #3
heyyo CreditAttribution: heyyo commentedI 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
Comment #4
heyyo CreditAttribution: heyyo commentedComment #5
TuWebO CreditAttribution: TuWebO commentedHello,
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.
Comment #6
heyyo CreditAttribution: heyyo commentedHi @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 ?
Comment #7
TuWebO CreditAttribution: TuWebO commentedHi 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.
Comment #8
TuWebO CreditAttribution: TuWebO commentedHi,
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.
Comment #9
heyyo CreditAttribution: heyyo commentedI 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.
Comment #10
heyyo CreditAttribution: heyyo commentedI 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
Comment #11
heyyo CreditAttribution: heyyo commented@Tuwebo could you give me an example of youtube URL or vimeo URL that works for you ?
Comment #12
heyyo CreditAttribution: heyyo commentedI 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.
Comment #13
Devin Carlson CreditAttribution: Devin Carlson commentedWith 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.
Comment #14
Devin Carlson CreditAttribution: Devin Carlson commentedTested #13 and committed to Commons 7.x-3.x.
Comment #17
Doronro CreditAttribution: Doronro as a volunteer commentedhi,
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