Skip to content

Commit 12e9288

Browse files
author
Farzin
committed
update youtube embed on editor
1 parent 62c5555 commit 12e9288

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

src/Blogifier.Admin/wwwroot/admin/js/editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ function insertYoutube(editor) {
210210
let id = prompt("Please enter video ID", "");
211211

212212
if (id !== null && id !== "") {
213-
let tag = '<iframe width="640" height="480" src="https://www.youtube.com/embed/' + id + '" frameborder="0" allowfullscreen></iframe>';
213+
let tag = `<iframe width="700" height="400" src="https://www.youtube.com/embed/${id}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>`;
214214
let cm = _editor.codemirror;
215215
cm.replaceSelection(tag);
216216
}

src/Blogifier/Blog.db

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)