Index: trunk/extensions/VisualEditor/modules/sandbox/sandbox.js |
— | — | @@ -492,7 +492,7 @@ |
493 | 493 | while ( --i >= end ) { |
494 | 494 | action = surfaceModel.history[i]; |
495 | 495 | if ( action instanceof es.Range ) { |
496 | | - events += '<div>select( ' + action.from + ', ' + action.to + ' )</div>'; |
| 496 | + events += '<div>sel( ' + action.from + ', ' + action.to + ' )</div>'; |
497 | 497 | } else { |
498 | 498 | ops = action.getOperations().slice( 0 ); |
499 | 499 | for ( var j = 0; j < ops.length; j++ ) { |
— | — | @@ -506,7 +506,7 @@ |
507 | 507 | if ( typeof data !== 'string' && typeof data !== 'number' ) { |
508 | 508 | data = '-'; |
509 | 509 | } |
510 | | - ops[j] = ops[j].type + '( ' + data + ' )'; |
| 510 | + ops[j] = ops[j].type.substr( 0, 3 ) + '( ' + data + ' )'; |
511 | 511 | } |
512 | 512 | events += '<div>' + ops.join( ', ' ) + '</div>'; |
513 | 513 | } |
— | — | @@ -540,6 +540,7 @@ |
541 | 541 | } ); |
542 | 542 | } ); |
543 | 543 | |
| 544 | + |
544 | 545 | surfaceModel.on( 'transact', function() { |
545 | 546 | if ( currentMode ) { |
546 | 547 | currentMode.update.call( currentMode ); |