그누보드5에서 htmlpurifier 플러그인을 통해
iframe에서 allowfullscreen 코드를 제거 하기 때문에 전체화면이 안되게 됩니다.
plugin/htmlpurifier/HTMLPurifier.standalone.php
[code]
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 남기기
)
);
}
}
[/code]
위처럼 'allowfullscreen' => 'Enum#', 를 추가해주시면 allowfullscreen 코드가 남게되어 전체화면이 가능해집니다.
위의 소스로 변경후
서버의 data/cache 폴더 안의
CSS,HTML.URI 폴더를 삭제해주시면 새로 변경이 완료됩니다.
iframe에서 allowfullscreen 코드를 제거 하기 때문에 전체화면이 안되게 됩니다.
plugin/htmlpurifier/HTMLPurifier.standalone.php
[code]
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 남기기
)
);
}
}
[/code]
위처럼 'allowfullscreen' => 'Enum#', 를 추가해주시면 allowfullscreen 코드가 남게되어 전체화면이 가능해집니다.
위의 소스로 변경후
서버의 data/cache 폴더 안의
CSS,HTML.URI 폴더를 삭제해주시면 새로 변경이 완료됩니다.
댓글 3개
게시글 목록
| 번호 | 제목 |
|---|---|
| 3142 | |
| 3134 | |
| 3116 | |
| 3114 | |
| 3108 | |
| 3107 | |
| 3106 | |
| 3099 | |
| 3092 | |
| 3079 | |
| 3075 | |
| 3064 | |
| 3058 | |
| 3057 | |
| 3055 | |
| 3051 | |
| 3043 | |
| 3038 | |
| 3036 | |
| 3034 | |
| 3022 | |
| 3021 | |
| 3014 | |
| 3007 | |
| 3003 | |
| 2992 | |
| 2964 | |
| 2958 | |
| 2953 | |
| 2949 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기