mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
General cleanup of DOM traversal code in editor & uploader (should also fix #2303)
This commit is contained in:
parent
7dd3dd3838
commit
b9ea0e65b0
6 changed files with 49 additions and 48 deletions
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue