Skip to content
Snippets Groups Projects
Commit 613ee31f authored by Jeremy Kersten's avatar Jeremy Kersten
Browse files

[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
parent 7e999ece
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment