-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
RichText: warn when using inline tagName #11839
Comments
I was able to narrow down the problem. In the current quote/pullquote implementation the richtext is only rendered if isSelected is true or richtext is not empty |
Does it also happen with div? Inline elements and richtext/tinymce don't work well together. |
Sounds like we'll have to start warning on the use of RichText with inline elements. |
So, is there a way to fix this bug? I have the same problem when delete text by hitting backspace multiple times. :( |
@vicolaspetru you shouldn't use RichText with tagName=span. |
Describe the bug
Create a RichText node in edit function. Fill with text content. Remove text with backspace key (selecting the text and deleting it all together does not cause this issue).
To Reproduce
Steps to reproduce the behavior:
0. Create Richtext, e.g.
Error occurs:
index.js?ver=1542114671:1 The given range isn't in document.
Expected behavior
Text should be cleared if user tries to delete content letter by letter with backspace.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: