From 45e0cd564afdae71e9525193250744e88076da71 Mon Sep 17 00:00:00 2001 From: "Lucas Perais (lpe)" Date: Tue, 29 Aug 2017 09:28:31 +0200 Subject: [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 --- addons/web_editor/static/src/js/widgets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web_editor/static/src/js/widgets.js') 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 = $( - '
'+ + '
'+ '
 
'+ '
 
'+ ''+ -- cgit v1.2.3