Le 17/04/2017 à 18:09, Milan Raj a écrit :
It would be great to have more control externally to know and control when records are added or removed from the undo / redo stack.
I think Facebook gave up on this idea and created draft.js on top of React
https://draftjs.org/docs/overview.html#content (the talk video is a good introductory material about their motivations and design decisions). The implementation of an undo/redo feature with React and/or redux is fairly straightforward
http://redux.js.org/docs/recipes/ImplementingUndoHistory.html

IMHO as an author, this is sufficient and removes the need for more integration in the browser. YMMV

David
_______________________________________________
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo

Reply via email to