marktext / muya

📄 Future markdown editor for web browser applications development

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The image can not be edit

Jocs opened this issue · comments

  • Searched existing issues to avoid creating duplicates.

  • Confirmed that it can be reproduced in muya.


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):

  • OS: [e.g. macOS 13.5 (22G74)]
  • Browser: [e.g. Chrome 116.0.5845.110 (arm64)]

Muya Version
e.g: 0.10.11

Screenshots / Screencasts(Optional)
截屏2023-09-22 21 34 26