그누보드5에서 htmlpurifier 플러그인을 통해
iframe에서 allowfullscreen 코드를 제거 하기 때문에 전체화면이 안되게 됩니다.
plugin/htmlpurifier/HTMLPurifier.standalone.php
class HTMLPurifier_HTMLModule_Iframe extends HTMLPurifier_HTMLModule
{
public $name = 'Iframe';
public $safe = false;
public function setup($config) {
if ($config->get('HTML.SafeIframe')) {
$this->safe = true;
}
$this->addElement(
'iframe', 'Inline', 'Flow', 'Common',
array(
'src' => 'URI#embedded',
'width' => 'Length',
'height' => 'Length',
'name' => 'ID',
'scrolling' => 'Enum#yes,no,auto',
'frameborder' => 'Enum#0,1',
'longdesc' => 'URI',
'marginheight' => 'Pixels',
'marginwidth' => 'Pixels',
'allowfullscreen' => 'Enum#', //allowfullscreen 남기기
)
);
}
}
위처럼 'allowfullscreen' => 'Enum#', 를 추가해주시면 allowfullscreen 코드가 남게되어 전체화면이 가능해집니다.
위의 소스로 변경후
서버의 data/cache 폴더 안의
CSS,HTML.URI 폴더를 삭제해주시면 새로 변경이 완료됩니다.
/lib/apms.lib.php 1451줄 //facebook 코드에
allowfullscreen="true" 를 추가해주세요
1 | $show = '< iframe
src = "<a href=" https://www.facebook.com/video/embed? video_id = " target=" _blank">https://www |
ㅇㅇ
allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true" oallowfullscreen="true" msallowfullscreen="true"
출처 : http://amina.co.kr/bbs/board.php?bo_table=apms_qa&wr_id=29816
3. 테마 JS 파일에 직접 소스 삽입하기
$('iframe').attr('allowFullScreen','true');
경로 : ./thema/Basic/assets/js/custom.js
위 두 방법 다 안되서 테마 JS 파일에 직접 코드 삽입하는 형식으로 작업했습니다. @_@;