Ace: undo manager reset on setValue

Created on 19 Jun 2015  路  1Comment  路  Source: ajaxorg/ace

I have a scenario where two editors (ace and other one) edit the same document.
When the ace editor is reopened I set the updated document text by calling the session setValue method and then the undo manager is reset.
I would like to be able to set the new content of the document and keep the undos (no redos of course).
Is there an option to do this in current APIs?

Most helpful comment

you can use session.doc.setValue

>All comments

you can use session.doc.setValue

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hangum picture hangum  路  17Comments

a-x- picture a-x-  路  52Comments

hoge1e3 picture hoge1e3  路  12Comments

rsercano picture rsercano  路  13Comments

eyalfink picture eyalfink  路  39Comments