summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/widgets.js
diff options
context:
space:
mode:
authorLucas Perais (lpe) <lpe@odoo.com>2017-08-29 09:28:31 +0200
committerLucas Perais (lpe) <lpe@odoo.com>2017-09-06 13:52:03 +0200
commit45e0cd564afdae71e9525193250744e88076da71 (patch)
tree9527cb4ba54a72eca6e75833b113c0d731662ea7 /addons/web_editor/static/src/js/widgets.js
parent8fd5951fbe796312205adf08cd14deed6eee8768 (diff)
[FIX] web_editor, website_forum: allow to post videos on the forum
The commit 8749410b1033ddec1207ce1db42d1889a0d2ea33 corrected the way the iframe was rendered to display a video in v9.0. In v10 though, the html sanitizer is a bit more severe and cleans data-src attributes, preventing the iframe to have a src This commit works around that and allows the src of the video to be saved in db OPW 761424 closes #19125
Diffstat (limited to 'addons/web_editor/static/src/js/widgets.js')
-rw-r--r--addons/web_editor/static/src/js/widgets.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/widgets.js b/addons/web_editor/static/src/js/widgets.js
index 6e7a6784351..eb34bd152ca 100644
--- a/addons/web_editor/static/src/js/widgets.js
+++ b/addons/web_editor/static/src/js/widgets.js
@@ -915,7 +915,7 @@ var VideoDialog = Widget.extend({
video_id = this.$("#video_id").val();
}
var $iframe = $(
- '<div class="media_iframe_video" data-src="'+this.$iframe.attr("src")+'">'+
+ '<div class="media_iframe_video" data-oe-expression="'+this.$iframe.attr("src")+'">'+
'<div class="css_editable_mode_display">&nbsp;</div>'+
'<div class="media_iframe_video_size" contentEditable="false">&nbsp;</div>'+
'<iframe src="'+this.$iframe.attr("src")+'" frameborder="0" allowfullscreen="allowfullscreen" contentEditable="false"></iframe>'+