diff options
| author | Jeremy Kersten <jke@odoo.com> | 2016-05-13 12:15:32 +0200 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2016-05-13 12:37:51 +0200 |
| commit | 613ee31f9c67179c4e13aa9a2dbcef6492da38d9 (patch) | |
| tree | f39914a742bd50d2d754ee7ee43f908dbdeb6295 /addons/web_editor/static | |
| parent | 7e999ece011aaf102ee5fe81e9de504d22f20453 (diff) | |
[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
Diffstat (limited to 'addons/web_editor/static')
| -rw-r--r-- | addons/web_editor/static/src/js/widgets.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/js/widgets.js b/addons/web_editor/static/src/js/widgets.js index 7f9178afee4..bbab5d22df3 100644 --- a/addons/web_editor/static/src/js/widgets.js +++ b/addons/web_editor/static/src/js/widgets.js @@ -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); |
