Allow autoplay attribute of <audio> and <video> tags #1187

This commit is contained in:
Kijin Sung 2019-08-13 15:11:08 +09:00
parent 553ae9ce98
commit d8fa31722c
2 changed files with 5 additions and 3 deletions

View file

@ -235,6 +235,7 @@ class HTMLFilter
'preload' => 'Enum#auto,metadata,none',
'controls' => 'Bool',
'muted' => 'Bool',
'autoplay' => 'Bool',
'loop' => 'Bool',
));
$def->addElement('video', 'Block', 'Optional: (source, Flow) | (Flow, source) | Flow', 'Common', array(
@ -246,6 +247,7 @@ class HTMLFilter
'preload' => 'Enum#auto,metadata,none',
'controls' => 'Bool',
'muted' => 'Bool',
'autoplay' => 'Bool',
'loop' => 'Bool',
));
$def->addElement('source', 'Block', 'Empty', 'Common', array(