Index: trunk/extensions/VisualEditor/modules/ve/ce/ve.es.Surface.js |
— | — | @@ -38,10 +38,12 @@ |
39 | 39 | |
40 | 40 | console.log(_this.clipboard); |
41 | 41 | |
| 42 | + |
42 | 43 | if (event.type == 'cut') { |
43 | | - var selection = _this.getSelection(); |
44 | | - |
45 | 44 | setTimeout(function() { |
| 45 | + document.execCommand('undo', false, false); |
| 46 | + |
| 47 | + var selection = _this.getSelection(); |
46 | 48 | var tx = _this.model.getDocument().prepareRemoval( selection ); |
47 | 49 | _this.model.transact( tx ); |
48 | 50 | _this.showCursorAt(selection.start); |