marktext / muya

📄 Future markdown editor for web browser applications development
MIT License
615 stars 54 forks source link

The image can not be edit #123

Closed Jocs closed 11 months ago

Jocs commented 11 months ago

Describe the bug After selecting the picture, click Edit, the image editing panel appears, the input box gets the cursor, and the backspace button is clicked, which cannot delete the src content, but deletes the content in the file

To Reproduce Steps to reproduce the behavior:

  1. Select one image in document.
  2. Click edit button
  3. Put cursor in the input area
  4. Press the backspace key.

Expected behavior The src of image is deleted one by one (char)

Actual behavior The content of the document are deleted.

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

Muya Version e.g: 0.10.11

Screenshots / Screencasts(Optional)

截屏2023-09-22 21 34 26