-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Unable to use undo and redo properly in editor #2602
Comments
After further usage of bookstack, I have now noticed that there are some pages affected by it, and other pages which are not affected by the bug I have mentioned. If there's anything you would like me to provide to give you a greater insight as to what the issue might be, please let me know and I'd be more than happy to provide. |
Hi @bcatly, |
Hi @ssddanbrown Thanks for the help! I am using Firefox and I am on a Windows 10 Operating System. As for the source code you have requested I have input it below. More than shareable content, as it's only my progress in understanding how to use bash! Hope there's something there that can prove useful to resolving the issue. If you need anything else, please do let me know.
|
HI there! Any chance you were able to replicate this issue on your side? |
@ssddanbrown I think I may have found a correlation to what causes the issue. It appears to be that any page I have which contains a code block, all fall for the same no undo situation. When I tested this with a page I did not add a code block on, everything seems to work just fine. Edit: I can confirm that the issue is in relation to code blocks. I tried deleting the codeblock from a page and saved it. After trying the undo and redo, it works again. Any chance there would a solution to this issue? |
Hi @bcatly, Thanks for the extra examples and investigation done above, I can confirm I can replicate this on my dev instance when a code block is in the page. I've marked this for the next patch release so I don't forget to address it. |
…states Only used an undo transaction on startup and added a small delay to codeMirror parsing on SetContent's to help avoid the rendering activities getting caught in undoManager states. Seemed to improve things a lot in Firefox & chrome on my dev machine. For #2602
I'll close this off but if you continue to frequently have problems after upgrading feel free to let me know or open a new issue referencing this one if I'm unresponsive here. |
Describe the bug
Whilst using the website in WYSIWYG editor mode, I am unable to use the undo and redo correctly. I can undo once, but after that it seems to have forgotten all the settings.
Steps To Reproduce
Create a new page in any book. Type a couple lines of words then try to press undo and redo.
Before I press undo
![image](https://user-images.githubusercontent.com/6569219/109537453-cc96bf00-7ab6-11eb-9cce-4f9edc289ce5.png)
After pressing undo
![image](https://user-images.githubusercontent.com/6569219/109537532-e0422580-7ab6-11eb-9718-ce561e96fb6e.png)
As you can see, the redo button is still greyed out, like I have never pressed it. I also cannot undo any more steps or redo the step I just did. If I continue onwards from here, it seems I gain the ability to undo 1 time again.
Expected behavior
I expect to be able to use the redo and undo button reliably. At least for a couple steps as what is the case with other text editors.
Screenshots
Screenshots attached above.
Your Configuration (please complete the following information):
The text was updated successfully, but these errors were encountered: