-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
ra-input-rich-text breaks when using special characters #3073
Comments
We are using the latest version of Thanks |
Bug confirmed and reproduced |
I believe it's a Quill bug, did you look for a similar issue in their bug tracker? Edit: I can't reproduce the bug on the Quill demo. So it's easier a bug that was fixed in the recent past, or a bug due to our own integration of Quill. |
@fzaninotto Tnx. I also tried it on other quill plugins (React-Quill Demo - https://codepen.io/alexkrolick/pen/xgyOXQ) & (https://github.com/zenoamaro/react-quill) And I can't reproduce it. |
@JakobRobijns @fzaninotto i think this is due to the integration of Quill,
i have made a fix but i am not sure if that is the best way. |
What you were expecting:
I wanted to use RichTextInput from 'ra-input-rich-text' like normal use.
What happened instead:
When trying to insert some Spanish content text ("ARTÍCULO 1.- El presente reglamento es de observancia obligatoria"), and make the "ARTÍCULO" bold (or another action), it keeps creating paragrafs.
After searching why, it's the 'Í' that breaks it. (It's a variant of the normal 'I' used in Spanish.
Edit: It's not only the 'I', other characters also break it.
Steps to reproduce:
-Create an react-admin application and use RichTextInput from 'ra-input-rich-text'.
-Try inserting content with the letter 'Í'.
-Make it bold/italic/...
Related code:
import RichTextInput from 'ra-input-rich-text';
<RichTextInput source="description" />
Other information:
GIF of the bug
Environment
The text was updated successfully, but these errors were encountered: