채택완료

그누보드5 스마트에디터2(Smarteditor2) A 태그 자동삽입기능 삭제

2020-09-20 (일) 18:52:28 5,110

그누보드5 스마트에디터2(Smarteditor2) A 태그 자동삽입기능 삭제가능한가요?

SE2M_Configuration.js 파일에서 아래 bAutolink 를 false로 했고, 

Copy
nhn.husky.SE2M_Configuration.SE2M_Hyperlink = {
    bAutolink : false    // 자동링크기능 사용여부(기본값:true)
};

smarteditor2.js 여기에 bAutolink === true 설정했습니다. 

Copy
$BEFORE_MSG_APP_READY : function(){
        var htOptions = nhn.husky.SE2M_Configuration.SE2M_Hyperlink;
        if(htOptions && htOptions.bAutolink === true){
            // 자동링크 컨버터 비활성화 
            this.$ON_REGISTER_CONVERTERS = null;
            // UI enable/disable 처리 제외 
            this.$ON_DISABLE_MESSAGE = null;
            this.$ON_ENABLE_MESSAGE = null;
            // 브라우저의 자동링크기능 비활성화 
            try{ this.oApp.getWYSIWYGDocument().execCommand("AutoUrlDetect", false, false); } catch(e){}
        }
    },

할수 있는건 다했다고 생각하는데 계속 a태그가 지져분하게 삽입되네요. ㅠ.ㅠ 

고수님들 도와주세요. 

답변 1개

채택된 답변
+20 포인트

현재 그누보드에 내장된 smarteditor가 아닌 것 같습니다.

의미상으로 보면 둘다 false가 맞는 것 같습니다.

최신버전이라고 하면 github에 직접 문의 하시는 것이.

https://github.com/naver/smarteditor2/issues/35

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