CKEditor breaks while uploading image and saving before the image upload is finished

Created on 1 October 2020, about 4 years ago
Updated 26 May 2023, over 1 year ago

Problem/Motivation

CKEditor breaks when you are uploading an image but try to save image upload dialog before the image has finished uploading. This happened in both 8.9.x and 9.1.x as well.

Steps to reproduce

- Install fresh new Drupal
- Go to new article creation page
- Click the "image upload icon"
- When the image upload dialog box appears, upload a large sized image that takes many seconds to upload
- While the image is still being uploaded, hit "save" on the dialog box
- Wait until the ajax request for the image upload is completed
- After the image upload xhr request has finished, it should break the underlying CKEditor
- Demo: https://www.loom.com/share/2c8559820a274f11a4bd31cbfbb9625f

What behavior were you expecting?

- CKEditor should keep working
- Error should be visible as now

What happened instead?

- CKEditor disappeared once image upload xhr was completed

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇳🇵Nepal gupta324

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024