tui.editor
tui.editor copied to clipboard
After rendering the content using 'initialValue', ctrl+z will undo it to blank space, and this issue also exists in the demo on the official website
Describe the bug
After rendering the content using 'initialValue', ctrl+z will undo it to blank space, and this issue also exists in the demo on the official website
To Reproduce
Steps to reproduce the behavior:
- Go to Editor
- Click on 'ctrl + z'
- See error
Expected behavior
Ctrl+Z should only be able to undo to the initialized value at the earliest, not blank
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: PC
- OS: Windows 11
- Browser Edge
- Version 124.0.2478.39
@zealpane Opened a PR: #3270