채택완료

html 필터의 이미지맵태그가 안먹습니다.

https://sir.kr/g5_tip/3099 

이곳에 나온대로 

$config->set('Attr.AllowedFrameTargets', array('_blank')); 

아래에 다음과 같이 추가했습니다.

Copy
$def = $config->getHTMLDefinition(true); 

// Add usemap attribute to img tag 
    $def->addAttribute('img', 'usemap', 'CDATA'); 

// Add map tag 
    $map = $def->addElement( 
            'map', // name 
            'Block', // content set 
            'Flow', // allowed children 
            'Common', // attribute collection 
            array(// attributes 
        'name' => 'CDATA', 
        'id' => 'ID', 
        'title' => 'CDATA', 
            ) 
    ); 
    $map->excludes = array('map' => true); 

// Add area tag 
    $area = $def->addElement( 
            'area', // name 
            'Block', // content set 
            'Empty', // don't allow children 
            'Common', // attribute collection 
            array(// attributes 
        'name' => 'CDATA', 
        'id' => 'ID', 
        'alt' => 'Text', 
        'coords' => 'CDATA', 
        'accesskey' => 'Character', 
        'nohref' => new HTMLPurifier_AttrDef_Enum(array('nohref')), 
        'href' => 'URI', 
        'shape' => new HTMLPurifier_AttrDef_Enum(array('rect', 'circle', 'poly', 'default')), 
        'tabindex' => 'Number', 
        'target' => new HTMLPurifier_AttrDef_Enum(array('_blank', '_self', '_target', '_top')) 
            ) 
    ); 
    $area->excludes = array('area' => true);

팝업창을 올리지 않았을 땐 아무렇지 않은데

팝업창을 올리면 화면이 하얗게만 나옵니다.

3553233877_1561600159.4879.png

태그 입력후 팝업레이어관리에서 html 내용을 저렇게 입력했는데

메뉴만 나오고 완전히 하얀 화면만 나옵니다.

혹시몰라서 이미지맵 태그 없이 팝업창만 올렸는데

그래도 하얀 화면이 나오네요...

어디가 잘못된 걸까요?

답변 1개 / 댓글 1개

채택된 답변
+20 포인트

예전에 해봤는데 잘 되던데요. 참고하세요.

http://gnustudy.com/bbs/board.php?bo_table=gnu_tip&wr_id=227

답변에 대한 댓글 1개

...어..? 링크 넣어주신 대로 했더니 이번엔 되네요..;;

위치가 달라서 그런가..?
감사합니다...;;

답변을 작성하려면 로그인이 필요합니다.