var nodePath = [this].concat(this.parents()),
toret, idx;
ancestor = ancestor || this.document.root;
var nodePath = [this].concat(this.parents()),
toret, idx;
ancestor = ancestor || this.document.root;
this._nodeTransformations = {};
this._textNodeTransformations = {};
this._elementNodeTransformations = {};
this._nodeTransformations = {};
this._textNodeTransformations = {};
this._elementNodeTransformations = {};
transform: function(Transformation, args) {
//console.log('transform');
var toret, transformation;
transform: function(Transformation, args) {
//console.log('transform');
var toret, transformation;
- toret = transformation.run();
- if(this._transformationLevel === 1) {
+ toret = transformation.run({beUndoable:this._transformationLevel === 1});
+ if(this._transformationLevel === 1 && !this._undoInProgress) {
this.undoStack.push(transformation);
}
this._transformationLevel--;
//console.log('clearing redo stack');
this.undoStack.push(transformation);
}
this._transformationLevel--;
//console.log('clearing redo stack');