Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

에디터에서 작성된 video 태그 등이 사라닙니다. #2420

Closed
wookho opened this issue Jan 24, 2020 · 3 comments
Closed

에디터에서 작성된 video 태그 등이 사라닙니다. #2420

wookho opened this issue Jan 24, 2020 · 3 comments

Comments

@wookho
Copy link

wookho commented Jan 24, 2020

#1882

과거 이슈 처리가 안된 것 같네요.

@wookho
Copy link
Author

wookho commented Jan 26, 2020

검색을 통해서
/classes/security/Purifier.class.php 파일의 private function _setDefinition(&$content) 에 아래를 추가하고 일단 임시 조치 했습니다.

$this->_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',
'muted' => 'Bool',
'autoplay' => 'Bool',
'playsinline' => 'Bool',
'loop' => 'Bool'
));
$this->_def->addElement('source', 'Block', 'Flow', 'Common', array(
'src' => 'URI',
'type' => 'Text',
));

@Lastorder-DC
Copy link

1882번 이슈는 관리자 회원의 글 작성시 필터링이 적용되던 문제점이 수정된 것으로 video 태그가 삭제되는 문제점과는 무관합니다. video 태그가 삭제되는 것은 XE에 내장된 HTMLPurifier 버전이 낮아 html5 태그를 인식하지 못하는 문제 때문으로, 이미 #1800 #1804 에서 HTMLPurifier 버전업에 대해 다루었으나 현재 close되어 있습니다.

@wookho
Copy link
Author

wookho commented Jan 26, 2020

관리자권한으로도 필터링 되는 잇 였던거네요.
html5 태그 대응을 아직도 못하고 있는건 이제라도 조치가 되면 좋겠네요.

@wookho wookho closed this as completed Jul 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants