JiHong88 / suneditor

Pure javascript based WYSIWYG html editor, with no dependencies.
http://suneditor.com
MIT License
1.77k stars 316 forks source link

Quickly pressing [ENTER] followed by [DELETE] causes creation of new element .se-wrapper-wysiwyg #1474

Open adamsarek opened 3 weeks ago

adamsarek commented 3 weeks ago

Describe the bug After quickly pressing [ENTER] followed by quickly pressing [DELETE] it creates a second element .se-wrapper-wysiwyg.

To Reproduce Steps to reproduce the behavior:

  1. Quickly pressing [ENTER]
  2. Quickly pressing [DELETE]
  3. Repeating steps 1 & 2
  4. Eventually the second element .se-wrapper-wysiwyg is created

Expected behavior It should not create another .se-wrapper-wysiwyg. This element is also unable to be deleted without going into devtools.

Screenshots another_wysiwyg

Desktop

Release