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

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

QA

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

본문

https://sir.kr/g5_tip/3099 

 

이곳에 나온대로 

 

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

 

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

 


 $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 내용을 저렇게 입력했는데

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

 

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

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

 

어디가 잘못된 걸까요?

이 질문에 댓글 쓰기 :

답변을 작성하시기 전에 로그인 해주세요.
전체 39
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT