deshabilitar los controles de los videos para poder seleccionarlos

This commit is contained in:
f 2020-11-17 20:30:06 -03:00
parent dba39dfc28
commit 7b1b243708

View file

@ -465,6 +465,7 @@ function setupEditor (editorEl) {
for (const video of document.querySelectorAll('.editor .editor-content video')) { for (const video of document.querySelectorAll('.editor .editor-content video')) {
video.addEventListener('click', event => event.target.controls = true) video.addEventListener('click', event => event.target.controls = true)
video.addEventListener('focusout', event => event.target.controls = false) video.addEventListener('focusout', event => event.target.controls = false)
video.controls = false
} }
cleanContent(contentEl) cleanContent(contentEl)