General cleanup of DOM traversal code in editor & uploader (should also fix #2303)

This commit is contained in:
Kijin Sung 2024-04-26 13:35:20 +09:00
parent 7dd3dd3838
commit b9ea0e65b0
6 changed files with 49 additions and 48 deletions

View file

@ -43,7 +43,7 @@ CKEDITOR.plugins.add('rx_upload', {
const uploadFile = function(file) {
// Get the editor sequence.
const editor_container = $(editor.container.$).parents('.rx_ckeditor');
const editor_container = $(editor.container.$).closest('.rx_ckeditor');
const upload_container = editor_container.nextAll('.xefu-container').first();
const editor_sequence = editor_container.data('editorSequence');