[FIX] web_editor: video - allow to add video from unknown source

There are not cat... but you cannot know all the existing website in the world...
So, have faith in the user !

To do: allow to customize size or get it from iframe provided
This commit is contained in:
Jeremy Kersten
2016-05-13 12:37:51 +02:00
parent 7e999ece01
commit 613ee31f9c
@@ -836,6 +836,10 @@ function createVideoNode(url) {
.attr('src', '//player.youku.com/embed/' + youkuMatch[1]);
} else {
// this is not a known video link. Now what, Cat? Now what?
$video = $('<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>')
.attr('width', '640')
.attr('height', '360')
.attr('src', url);
}
$video.attr('frameborder', 0);