r104914 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104913‎ | r104914 | r104915 >
Date:23:06, 1 December 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Select 1,1 by default on load of demo/sandbox
Modified paths:
  • /trunk/extensions/VisualEditor/modules/sandbox/sandbox.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/sandbox/sandbox.js
@@ -421,6 +421,7 @@
422422 window.surfaceModel = new es.SurfaceModel( window.doc );
423423 window.surfaceView = new es.SurfaceView( $( '#es-editor' ), window.surfaceModel );
424424 window.toolbarView = new es.ToolbarView( $( '#es-toolbar' ), window.surfaceView );
 425+ window.surfaceModel.select( new es.Range( 1, 1 ) );
425426
426427 /*
427428 var tools = {

Status & tagging log