react-textarea-code-editor icon indicating copy to clipboard operation
react-textarea-code-editor copied to clipboard

CTRL + Z | Undo

Open jottasystem opened this issue 2 years ago • 2 comments

Hello guys!

I've a big problem with "undo"... When I typing any values but I press "Enter", I need to do "UNDO", only the line is currently working, and if I press several times then I will return to the initial state, but with the values I typed before. how can i fix this?

Playground: https://uiwjs.github.io/react-textarea-code-editor/

jottasystem avatar Jul 27 '23 19:07 jottasystem

I did not reproduce your problem. @jottasystem

jaywcjlove avatar Jul 28 '23 04:07 jaywcjlove

@jaywcjlove What is happening is that when we try to do the "Undo" action after we have skipped a line or hit the Enter key, sometimes the "Undo" function does not work. I will leave a gif to see if it can be a little clearer. In the example I write a small text then I press some enter and write another text and start to precious the ctrl + z when doing this action it makes the "undo" correctly until it reaches the point where there was the line break.

React Textarea Code Editor - A simple code editor with syntax highlighting

vitorlSilva avatar Jul 31 '23 15:07 vitorlSilva