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

Issue with Syntax module - when trying to replace a highlighted text, the text gets deleted #3522

Closed
darbentov opened this issue Jan 18, 2022 · 2 comments

Comments

@darbentov
Copy link

Hi, I'm using the Syntax module in order to do syntax highlighting of code blocks.
I stumbled upon an issue where I'm trying to replace a highlighted text with a different text, the text gets deleted.

Link to demo:
https://codesandbox.io/s/quill-with-syntax-highlighting-bug-when-trying-to-replace-an-highlighted-text-x5uw9?file=/src/syntax.js

Steps to reproduce:

  1. Write console.log("hi"); inside the quill editor
  2. Click on the "code" formatting
  3. Select the highlighted text
  4. Press any letter instead
  5. The text will get deleted.

image

image

This is the result after typing "a":
image

@ronzip
Copy link

ronzip commented Jan 18, 2022

+1

@luin
Copy link
Member

luin commented Jun 23, 2023

Fixed in #3807. Feel free to let me know if there is anything missing. Closing

@luin luin closed this as completed Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants