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

christianbs picture christianbs  路  3Comments

featurecat picture featurecat  路  4Comments

ketysek picture ketysek  路  3Comments

jakub-zawislak picture jakub-zawislak  路  3Comments

xfix picture xfix  路  5Comments