Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/cplusplus11/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
ckeditor粘贴事件对象不包含粘贴的数据_Ckeditor_Paste - Fatal编程技术网

ckeditor粘贴事件对象不包含粘贴的数据

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粘贴事件对象不包含根据API文档应包含的属性:

我正在获取粘贴事件,如下所示:

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));
    });
});