자료실에 있는 "ck에디터 컴포넌트" 

 

https://xetown.com/index.php?mid=rxe_point&category=17122&document_srl=763833

 

트위터의 그것 처럼 글자수 카운트 및 글자수 제한

최초 등록일: 2017.10.13 조회수 : 402

 

를 설치하다가 질문이 있어 글을 올려요.

 

config.js파일에서 수정사항을 "특정게시판에서만" 작동되도록 하고 싶은데

어떻게 해야하는지 알 수 있을까요..?

 

 

아래와같이 코드를 입력하니 모든 게시판의 에디터에 작동해버려서...

서치해봐도 잘 안나와있어 질문합니다ㅠㅠ!

 

CKEDITOR.editorConfig = function( config ) {

 

config.extraPlugins = 'wordcount,notification';
     config.wordcount = 

          { // Whether or not you want to show the Word Count 

               showWordCount: true, 

          // Whether or not you want to show the Char Count 

               showCharCount: false, 

          // Maximum allowed Word Count 

               maxWordCount: 4, 

          // Maximum allowed Char Count 

               maxCharCount: 10

           };

};


 

  • ?
    if(currrent_mid == 'MIDNAME'){
    // CODE
    }

    으로 사용하시면 됩니다.
  • ? ?
    답변 감사합니다!!!