Skip to content
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

CTRL + Z | Undo #159

Open
jottasystem opened this issue Jul 27, 2023 · 2 comments
Open

CTRL + Z | Undo #159

jottasystem opened this issue Jul 27, 2023 · 2 comments

Comments

@jottasystem
Copy link

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/

@jaywcjlove
Copy link
Member

I did not reproduce your problem. @jottasystem

@vitorlSilva
Copy link

vitorlSilva commented Jul 31, 2023

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants