게시판에서 video 태그 사용법 질문드려용
본문
비디오태그가 안먹힌다고 해서
$config
->set(
'HTML.DefinitionID'
,
'html5-definitions'
);
$config
->set(
'HTML.DefinitionRev'
, 1);
if
(
$def
=
$config
->maybeGetRawHTMLDefinition()) {
$def
->addElement(
'figure'
,
'Block'
,
'Optional: (figcaption, Flow) | (Flow, figcaption) | Flow'
,
'Common'
);
$def
->addElement(
'figcaption'
,
'Inline'
,
'Flow'
,
'Common'
);
$def
->addElement(
'video'
,
'Block'
,
'Optional: (source, Flow) | (Flow, source) | Flow'
,
'Common'
,
array
(
'src'
=>
'URI'
,
'type'
=>
'Text'
,
'width'
=>
'Length'
,
'height'
=>
'Length'
,
'poster'
=>
'URI'
,
'preload'
=>
'Enum#auto,metadata,none'
,
'controls'
=>
'Bool'
,
));
$def
->addElement(
'source'
,
'Block'
,
'Flow'
,
'Common'
,
array
(
'src'
=>
'URI'
,
'type'
=>
'Text'
,
));
$def
->addAttribute(
'iframe'
,
'allowfullscreen'
,
'Bool'
);
}
이거 넣어서 동영상을 나오게하는건 성공했는데 컨트롤러가 안보여서 동영상 실행이 안 됩니다..ㅠ 도와주세요