2016-07-23 3 views
2

ckeditor에서 <br> 태그를 어떻게 제거합니까?ckeditor에서 br 태그를 제거하는 방법은 무엇입니까?

CKEDITOR.editorConfig = function(config) { 
     config.autoParagraph = false; 
    config.shiftEnterMode = CKEDITOR.ENTER_BR; 
    config.shiftEnterMode = CKEDITOR.ENTER_DIV; 

    // stops automatic insertion of <p> on focus 

    config.allowedContent = false; // don't filter my data 

}; 

답변

0

아래에 주어진 내가 CKEDITOR.config.disallowedContent

Docs, more docs 예를 들어 small demo

을 사용 설정 파일에 사용 CK 편집기와 코드의 표준 기능을 사용하고,이 작업을해야합니다 :

config.disallowedContent = 'br'; 

희망 하시겠습니까?

편집 : Here은 다른 좋은 문서 페이지 예 :

관련 문제