From 92b14bf1cbe5134dd13667023dbb4d6e6cb266fd Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Fri, 10 May 2024 23:30:48 +0900 Subject: [PATCH] Fix invalid editor_sequence when CKEditor is in full-screen mode https://xetown.com/questions/1822954 --- .../js/plugins/ckeditor/ckeditor/plugins/rx_paste/plugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/js/plugins/ckeditor/ckeditor/plugins/rx_paste/plugin.js b/common/js/plugins/ckeditor/ckeditor/plugins/rx_paste/plugin.js index 2cd92f873..cd8340e7b 100644 --- a/common/js/plugins/ckeditor/ckeditor/plugins/rx_paste/plugin.js +++ b/common/js/plugins/ckeditor/ckeditor/plugins/rx_paste/plugin.js @@ -47,9 +47,9 @@ CKEDITOR.plugins.add('rx_paste', { const uploadFile = function(file) { // Get the editor sequence. - const editor_container = $(editor.container.$).closest('.rx_ckeditor'); + const editor_sequence = editor.config.xe_editor_sequence; + const editor_container = $('#ckeditor_instance_' + editor_sequence); const upload_container = editor_container.nextAll('.xefu-container').first(); - const editor_sequence = editor_container.data('editorSequence'); // Generate the form data. const form = new FormData();