You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
can I persist editor.history and restore it later to a new instance of the editor to allow the user to undo/redo changes again?
I'm on version 32. This use to work in an older version I was using but the existing implementation I have no longer works in this version. Previously to restore state I was assigning the history back to editor.history. Is there a new way I should do this, something that involves updating the context maybe?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
can I persist
editor.history
and restore it later to a new instance of the editor to allow the user to undo/redo changes again?I'm on version 32. This use to work in an older version I was using but the existing implementation I have no longer works in this version. Previously to restore state I was assigning the history back to editor.history. Is there a new way I should do this, something that involves updating the context maybe?
Thanks 🙏
Beta Was this translation helpful? Give feedback.
All reactions