Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The issue of the <img> tag being deleted and then re-added #4419

Open
jinnyum opened this issue Sep 23, 2024 · 0 comments
Open

The issue of the <img> tag being deleted and then re-added #4419

jinnyum opened this issue Sep 23, 2024 · 0 comments

Comments

@jinnyum
Copy link

jinnyum commented Sep 23, 2024

Please describe the a concise description and fill out the details below. It will help others efficiently understand your request and get to an answer instead of repeated back and forth. Providing a minimal, complete and verifiable example will further increase your chances that someone can help.

<div class="ql-editor" contenteditable="true" data-placeholder="Compose an epic...">
     <p class="ql-align-center">
          <img src="uploads/unnamed.jpg">
     </p>
     <p>
          <br>
     </p>
</div>

Steps for Reproduction

When the cursor is in the second p tag and the backspace key is pressed, why does the image tag get deleted and then re-added? Is this a bug?

Expected behavior:

Only the second

tag should be deleted, and the tag should remain unaffected

Actual behavior:

Only the second

tag was deleted, yet the image is being deleted and re-added

Platforms:

chrome 128.0.6613.138
win 11 pro 10.0.22631

Version:

quill 2.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant