mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 07:06:22 +00:00
deshabilitar los controles de los videos para poder seleccionarlos
This commit is contained in:
parent
dba39dfc28
commit
7b1b243708
1 changed files with 2 additions and 1 deletions
|
@ -465,6 +465,7 @@ function setupEditor (editorEl) {
|
|||
for (const video of document.querySelectorAll('.editor .editor-content video')) {
|
||||
video.addEventListener('click', event => event.target.controls = true)
|
||||
video.addEventListener('focusout', event => event.target.controls = false)
|
||||
video.controls = false
|
||||
}
|
||||
|
||||
cleanContent(contentEl)
|
||||
|
@ -479,7 +480,7 @@ function stringifyAllowedStyle (element) {
|
|||
|
||||
document.addEventListener("turbolinks:load", () => {
|
||||
for (const editorEl of document.querySelectorAll(".editor")) {
|
||||
if (!editorEl.querySelector('.editor-toolbar')) continue
|
||||
if (!editorEl.querySelector('.editor-toolbar')) continue
|
||||
|
||||
setupEditor(editorEl)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue