[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 <Zinston@users.noreply.github.com>
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user