Open Shekhar-Dangi opened 9 months ago
@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:
* {
font-family: ...
}
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. highlightEnable={false}
and They had the same issues as you. https://github.com/uiwjs/react-md-editor/issues/276
use this code.
highlightEnable={false}
and They had the same issues as you. https://github.com/uiwjs/react-md-editor/issues/276
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.
https://github.com/uiwjs/react-md-editor/assets/76780858/6331c96c-1c01-4dc9-a949-608714b229cc
Here is my code :