크롬에서 업로드 후 자동 본문 삽입시 발생하는 간헐적인 CK에디터 오류 무시 (파일 증발 문제 수정)

Uncaught TypeError: Cannot read property 'checkReadOnly' of undefined (ckeditor.js)
This commit is contained in:
conory 2019-10-04 23:47:12 +09:00
parent 52fe5ecdc7
commit 111a010e72

View file

@ -170,7 +170,10 @@
temp_code = "<p>" + temp_code + "</p>\n";
}
if (opt.autoinsertImage !== 'none') {
_getCkeInstance(settings.formData.editor_sequence).insertHtml(temp_code, "unfiltered_html");
try {
_getCkeInstance(settings.formData.editor_sequence).insertHtml(temp_code, "unfiltered_html");
}
catch(err) {}
}
}
} else if (result.message) {
@ -345,7 +348,11 @@
if(temp_code === '') {
temp_code += '<a href="' + result.download_url + '" data-file-srl="' + result.file_srl + '">' + result.source_filename + "</a>\n";
}
_getCkeInstance(data.editorSequence).insertHtml(temp_code, "unfiltered_html");
try {
_getCkeInstance(data.editorSequence).insertHtml(temp_code, "unfiltered_html");
}
catch(err) {}
});
},
/**