[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user