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
When I create an ember-ace instance bound to an existing value, ctrl-z will allow me to "undo" to the empty document, like that was the first state. This problem is known in other components of ace (react-ace). Additionally, it would be cool to have a manual reset of the undoState, i.e. if I change the content of the editor programmatically and would like to have that as a new "starting point".
The text was updated successfully, but these errors were encountered:
It passed 6 years since your message, but as we still use EmberAce 2.0.1 in our project, I found a simple solution: use ready hook of the component and launch this code:
aceEditor.getSession().getUndoManager().reset()
where aceEditor is the first argument of the callback.
You can additionally store reference to the session and use reset on the undoManager programmatically any time.
When I create an ember-ace instance bound to an existing value, ctrl-z will allow me to "undo" to the empty document, like that was the first state. This problem is known in other components of ace (react-ace). Additionally, it would be cool to have a manual reset of the undoState, i.e. if I change the content of the editor programmatically and would like to have that as a new "starting point".
The text was updated successfully, but these errors were encountered: