-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Editing bug: creates and preserves styles from h1-h6 while turning it into paragraph #4039
Comments
Thanks for reporting! Can you reproduce this in Chrome? I can't reproduce it with Mac + Chrome 122. |
Yes, it does happen in the latest Chrome for Linux and Ubuntu 23. At the main page demo of https://quilljs.com/ It doesn't seem to happen in Firefox for Linux. |
Happens with the latest (rc-5) version on https://quilljs.com demo. |
My platform is Linux btw. |
Still happens with 2.0 on quill.com. . |
Do you think it will be possible to fix this? For me it looks like the most important thing to fix, otherwise the editor isn't really much different than a plain contenteditable. |
Sorry for the delay! I just started looking into this. I tried Chrome 120 on Window and Chrome 121 on Linux, but haven't reproduced the issue yet. Would be good if you could help me to reproduce it:
|
Hey, Good to hear from you! Here's a little video I made with Chromium 124 (no extensions installed) on Ubuntu 23. All browsers I tried on Ubuntu (Chromium, Brave, Firefox) gave keycode 46 for the 'del'. quilljs.webm |
Thanks for the details! Could you try out if the playground fixes your issue: link. I added a key handler for 46 key code. |
The bug doesn't happen there - the source code will have Here https://quilljs.com/playground/snow it happens yet in another way: there will be |
By Can you also try the link and see what get printed in the console? |
Okay that sounds good! I will double check the key code in different keyboard layouts but in the meantime you can use the code here to fix the issue: link |
I could not reproduce this on Codepen, but I could reproduce it on my local machine and Quill.com.
Expected behavior:
p with no style
Actual behavior:
p span with styles
Platforms:
Brave
Version:
'2.0.0-rc.2'
The text was updated successfully, but these errors were encountered: