marktext / muya

📄 Future markdown editor for web browser applications development
MIT License
639 stars 56 forks source link

The cursor is wrong when use `backspace` to delete some text #113

Closed Jocs closed 1 year ago

Jocs commented 1 year ago

Describe the bug When deleting text via the backspace key, the cursor is scrambled if the text is adjacent to the inline style

To Reproduce Steps to reproduce the behavior:

  1. Input text **hello**|
  2. Press backspace key twice

Expected behavior The text should be like this: **hello|

Actual behavior The text become this: **|hello, the | is cursor position.

Operation System and Browser version (please complete the following information):

Muya Version e.g: 0.10.11