-
-
Notifications
You must be signed in to change notification settings - Fork 168
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
Incorrect cursor position #578
Comments
@Shekhar-Dangi Example: https://github.com/uiwjs/react-md-editor/tree/master/example/nextjs Most likely it’s a style conflict, unable to reproduce your error |
We had the same problem and found we had a global stylesheet that had:
Moving this to a body style appears to have fixed things and allows the MDEditor component to use its own internal fonts. So I'd look for someplace where you overriding fonts or font attributes at a global level. |
@jvanderberg's answer sparked an idea which was basically to do this when overriding the font: body .w-md-editor-text-pre > code,
body .w-md-editor-text-input {
...
} I prefixed the classnames with the body tag. After hours of confusion, that solves my issue |
use this code. |
Thanks, this solved me issue as well |
I am using react-md-editor in my nextjs application but while typing, my cursor position is not correct.
Screen.Recording.2023-10-03.at.10.23.59.PM.mov
Here is my code :
The text was updated successfully, but these errors were encountered: