ckeditor粘贴事件对象不包含粘贴的数据
ckeditor粘贴事件对象不包含根据API文档应包含的属性: 我正在获取粘贴事件,如下所示:ckeditor粘贴事件对象不包含粘贴的数据,ckeditor,paste,Ckeditor,Paste,ckeditor粘贴事件对象不包含根据API文档应包含的属性: 我正在获取粘贴事件,如下所示: CKEDITOR.on('instanceReady', function(ev) { alert('Pasted: ' + JSON.stringify(evt)); }); 警报将返回以下字符串化对象: {"name":"paste","sender":{"$":{"form_select_standardlanguage": {"0":{},"1":{"0":{},"1":{},"
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}}}
我需要的是粘贴的文本来检查它并对其进行更改。您没有处理
粘贴事件
CKEDITOR.on('instanceReady', function(evt) {
evt.editor.on('paste', function (evt) {
alert('Pasted: ' + JSON.stringify(evt));
});
});