mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
크롬에서 업로드 후 자동 본문 삽입시 발생하는 간헐적인 CK에디터 오류 무시 (파일 증발 문제 수정)
Uncaught TypeError: Cannot read property 'checkReadOnly' of undefined (ckeditor.js)
This commit is contained in:
parent
52fe5ecdc7
commit
111a010e72
1 changed files with 9 additions and 2 deletions
|
|
@ -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) {}
|
||||
|
||||
});
|
||||
},
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue