raphasilvac / react-simple-contenteditable

A simple contenteditable component
27 stars 3 forks source link

What's the difference? #6

Open ghost opened 6 years ago

ghost commented 6 years ago

What's the difference betweeen this project and these below?

Nantris commented 6 years ago

One day react-contenteditable just stopped working for me. No clue why. It suddenly would not do anything but move my caret to the first position on every keystroke, resulting in backwards text.

<3 this project

krue-doug commented 6 years ago

I am also looking for an alternative to react-contenteditable, since that is buggy. This one doesn't seem to have a way to disable contenteditable

Nantris commented 6 years ago

@krue-doug I don't know if it helps, but you can use browser-specific CSS to disable modification perhaps:

-moz-user-modify: read-only;
-webkit-user-modify: read-only;

Alternatively you could use the onChange to force the state to remain the same no matter attempts to change it, I assume, though it's not great user experience.