Ignore (omit) some changes in the undo history

24 views
Skip to first unread message

Juliusz Gonera

unread,
Mar 8, 2012, 11:16:47 PM3/8/12
to ace-d...@googlegroups.com
Hi,

I'm adding some text to ACE using document.insert(). I would like those
changes to be ignored by the UndoManager. Right now what I'm doing is to
set session.$fromUndo to true, which prevents those changes from being
sent to the UndoManager, but depends on the internal implementation of
editor session.

I would like to avoid that and do it in a cleaner way. I saw that deltas
are also ignored in undo if they have an 'ignore' property, but I don't
know how to add this property before the delta reaches session.onChange().

Any suggestions?

Thanks,
--
Juliusz Gonera
http://juliuszgonera.com/

Reply all
Reply to author
Forward
0 new messages