Fix fullscreen in Vimeo embeds.
This commit is contained in:
parent
b6e64fb732
commit
3355b6dae5
@ -292,8 +292,10 @@ Embedding =
|
|||||||
key: 'Vimeo'
|
key: 'Vimeo'
|
||||||
regExp: /^\w+:\/\/(?:www\.)?vimeo\.com\/(\d+)/
|
regExp: /^\w+:\/\/(?:www\.)?vimeo\.com\/(\d+)/
|
||||||
el: (a) ->
|
el: (a) ->
|
||||||
$.el 'iframe',
|
el = $.el 'iframe',
|
||||||
src: "//player.vimeo.com/video/#{a.dataset.uid}?wmode=opaque"
|
src: "//player.vimeo.com/video/#{a.dataset.uid}?wmode=opaque"
|
||||||
|
el.setAttribute "allowfullscreen", "true"
|
||||||
|
el
|
||||||
title:
|
title:
|
||||||
api: (uid) -> "https://vimeo.com/api/oembed.json?url=https://vimeo.com/#{uid}"
|
api: (uid) -> "https://vimeo.com/api/oembed.json?url=https://vimeo.com/#{uid}"
|
||||||
text: (_) -> _.title
|
text: (_) -> _.title
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user