2017-12-18 5 views
0

사용자 지정 드롭 다운을 복사하여 붙여 넣으려고합니다.CK 편집기 - 복사하여 붙여 넣기

<span class="fp-dropdown-popup elastic-input error" contenteditable="false"> 
    <button class="fp-dropdown-button" tabindex="0"> 
     <span class="fp-placeholder">Select One</span> 
    </button> 
    <span class="fp-menu" data-fp-items="[goods]"> 
    </span> 
</span> 
내 HTML을 검사 CK 편집기 afterPaste 이벤트 내에서

그것은 다음과 같습니다 - -

<span contenteditable="false"> 
    <button tabindex="0"> 
     <span>Select One</span> 
    </button> 
    <span data-fp-items="[goods]"> 
    </span> 
</span> 

의 모든 클래스의 모든에서 제거 된 사용자 지정 드롭 다운 HTML은 다음과 같습니다 집단.

허용되는 콘텐츠가 사실인지 확인하는 데 필요한 몇 가지 게시물을 검토했습니다. config.allowedContent = true;

이러한 속성이 제거되는 위치를 알아 내려면 무엇을 알아야합니까? 당신이 그것을 제로 길이의 출력 배열이 의미하는 모든 것을 허용한다

CKEDITOR.instances[YOUR_INSTANCE_NAME].filter.allowedContent

브라우저 콘솔에서 실행하는 경우

규칙이 적용되지 것처럼

답변