2017-01-22 4 views
0
를 포함하지 않는

는 API 문서에 따라해야하는 속성이 포함되어 있지 않습니다 ckeditor 페이스트 이벤트 객체 다음과 같이ckeditor 붙여 넣기 이벤트 객체는 붙여 넣은 데이터

http://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-paste

내가 붙여 넣기 이벤트를 가져 오는 오전 :

CKEDITOR.on('instanceReady', function(ev) { 
    alert('Pasted: ' + JSON.stringify(evt)); 
}); 

그리고 경고는 다음과 같은 캐릭터 라인 객체 반환

{"name":"paste","sender":{"$":{"form_select_standardlanguage": 
{"0":{},"1":{"0":{},"1":{},"2":{},"3":{},"4":{},"5":{},"6":{}},"2": 
{"0":{},"1":{}}},"location":{"href":"http://somehost.com 
/somefile.php","origin":"http: 
//somehost.com","protocol":"http:","host":"somehost.com", 
"hostname":"somehost.com","port":"","pathname": 
"/somefile.php","search":"?searchkey=somekey","hash":""}, 
"data-cke-expando":102}},"data":{"$":{"isTrusted":true}}} 

내가 필요한 것은 붙여 넣은 텍스트를 확인하고 변경하는 텍스트입니다.

답변

0

paste 이벤트를 처리하고 있지 않습니다.

CKEDITOR.on('instanceReady', function(evt) { 
    evt.editor.on('paste', function (evt) { 
     alert('Pasted: ' + JSON.stringify(evt)); 
    }); 
});