From a66e5c660dd481b6f4652be67830e15ec2dd993b Mon Sep 17 00:00:00 2001 From: Nicolas Bayet Date: Wed, 14 Jul 2021 12:30:03 +0000 Subject: [PATCH] [FIX] web_editor: properly set the url for youtube embed There was a typo setting the url of youtube when pasting youtube url and trying to embed it. closes odoo/odoo#73711 Signed-off-by: Antoine Guenet --- addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js b/addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js index b97b70f4e31..baa653d8752 100644 --- a/addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js +++ b/addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js @@ -2185,7 +2185,7 @@ export class OdooEditor extends EventTarget { video.setAttribute('height', '315'); video.setAttribute( 'src', - 'https://www.youtube.com/embed/${youtubeUrl[1]}', + `https://www.youtube.com/embed/${youtubeUrl[1]}`, ); video.setAttribute('title', 'YouTube video player'); video.setAttribute('frameborder', '0');