When using the WYSIWYG option I get escaped output, I can look into this now also but I'm reporting it here to follow etc.
This is what I get when viewing the node (in edit mode I can see the video thumb in the editor):
{"preview_thumbnail":"http://drupal-8-2-x-dev:8888/sites/default/files/styles/video_embed_wys…","video_url":"https://www.youtube.com/watch?v=8Zpi9V0_5tw","settings":{"responsive":1,"width":"854","height":"480","autoplay":0},"settings_summary":["Embedded Video (Responsive)."]}
| Comment | File | Size | Author |
|---|---|---|---|
| #58 | test.patch | 12.04 KB | sam152 |
| #49 | test.patch | 10.3 KB | sam152 |
| #46 | test.patch | 700 bytes | sam152 |
| #44 | test.patch | 10.57 KB | sam152 |
| #43 | test.patch | 11.05 KB | sam152 |
Comments
Comment #2
sam152 commentedI don't mind tracking it down either. Can you tell me:
Comment #3
sam152 commentedI was able to reproduce this by switching to 'Trimmed' or 'Summary or trimmed'.
Comment #4
sam152 commentedWe could either figure out why the trimmed formatters remove paragraphs, or make the following test case pass.
Comment #9
sam152 commentedAnd the fix.
Comment #10
sam152 commentedLet me know if the patch works for your use case.
Comment #11
sam152 commentedComment #14
kriboogh commentedI know this issue is closed, but I still had the escaped output. I also had an incorrect json encoding in the video_url parameter. It contained an actual "a href" tag. For anybody looking for a fix, the problem lies in the order of the text format filters.
Make sure that the video embed filter is ran before the the "Convert URLs into links" and that the "Limit allowed HTML tags and correct faulty HTML" is ran before the video embed filter.
Maybe this should be documented somewhere? or the weight of the filter should be default between and above the mentioned filters.
Comment #15
kriboogh commentedComment #16
sam152 commentedThanks for providing some more detail. We should write a test and validation which ensures the weights are in the right order, to prevent anyone from having to track this down again.
Comment #17
sam152 commentedComment #18
sam152 commentedComment #25
sam152 commentedComment #29
sam152 commentedIncreased timeouts to reduce colorbox fails?
Comment #34
sam152 commentedComment #38
sam152 commentedComment #43
sam152 commentedComment #44
sam152 commentedComment #46
sam152 commentedComment #47
sam152 commentedComment #49
sam152 commentedComment #58
sam152 commentedComment #60
sam152 commented