RIP21 / react-simplemde-editor

React wrapper for simplemde (easymde) markdown editor
https://react-simplemde-edtior.netlify.com/
MIT License
766 stars 103 forks source link

Bug: "xxxxxxxxxxxxxxx" appears on text change #94

Closed pi0neerpat closed 5 years ago

pi0neerpat commented 5 years ago

Bug description

Weird "xxxxxxx" appears whenever text is changed. I've implementing a bare-bones SimpleMDE component in the CodeSandBox below to reproduce the results.

Using version 4.0.1

Reproduce the issue

https://codesandbox.io/s/elated-montalcini-qv791

Starts with this:

image

When you add/change any text it does this:

image

pi0neerpat commented 5 years ago

Whelp it turns out the issue is caused by importing a local easymde.css file rather than using easymde/dist/easymde.min.css.

I wanted to edit the css file to change a few things. I'll close this issue and add a comment over in https://github.com/RIP21/react-simplemde-editor/issues/90 where it was recommended to edit the css file

pi0neerpat commented 5 years ago

note: If you need to modify the .css file- copy the easymde.min.css in your local easymde node module folder in dist.