Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When enable imageMultipleFile, only last image is inserted #890

Closed
rexpan opened this issue Nov 9, 2021 · 2 comments
Closed

When enable imageMultipleFile, only last image is inserted #890

rexpan opened this issue Nov 9, 2021 · 2 comments
Labels
Milestone

Comments

@rexpan
Copy link

rexpan commented Nov 9, 2021

Describe the bug
When enable imageMultipleFile, SunEditor will only insert last image.
The previous image <figure> will be removed, leaving an empty <div class="se-component se-image-container __se__float-none">.
Because when call insertComponent() for 2nd image, this.removeNode(); will removed the <figure> of the first inserted image.

To Reproduce
Steps to reproduce the behavior:

  1. Go to http://suneditor.com/sample/html/options.html and enable imageMultipleFile options
  2. Try to insert 2 or more images
  3. the last image is inserted, but the previous images only empty dev remain.

Expected behavior
Multiple images inserted sucessfully.

Screenshots

vrauCU8dOR.mp4

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Chrome
  • Version 98
@JiHong88
Copy link
Owner

I'm aware of this issue.
It will be fixed in the next version.
I will update it as soon as possible.

@JiHong88 JiHong88 added the bug label Nov 10, 2021
@JiHong88 JiHong88 added this to the 2.42.0 milestone Nov 10, 2021
JiHong88 added a commit that referenced this issue Nov 22, 2021
@JiHong88
Copy link
Owner

The 2.42.0 version has been updated.
If this issue has not been resolved, please reopen this issue.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants