JiHong88 / suneditor

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

backspace deletes the entire paragraph #1348

Open s-kris opened 9 months ago

s-kris commented 9 months ago

When cursor is kept at the beginning of the line and backspace is pressed, the entire paragraph is deleted.

How to reproduce

  1. Open this doc: https://docs.google.com/document/d/1nW0Zlg2zCdzCPwCylGzOEBeKUghmX7x-/edit?usp=sharing&ouid=107970724833186089722&rtpof=true&sd=true
  2. Ctrl + A , Ctrl + C
  3. Go to suneditor.com and delete everything. Now Ctrl + V the contents into it.
  4. Now move cursor to the beginning of the content and press backspace multiple times to verify.

Screen recording

https://github.com/JiHong88/suneditor/assets/3975305/4ceaba39-5df1-43de-bf09-600c83848a35

ashu-dev-ops commented 9 months ago

@s-kris did you find any solution . i am also facing kinda same issue here it is => https://github.com/mkhstar/suneditor-react/issues/350

s-kris commented 8 months ago

No solution yet