Index: trunk/extensions/VisualEditor/modules/sandbox/sandbox.js |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | $(document).ready( function() { |
3 | 3 | var wikidoms = { |
4 | | - 'Direct manipulation interface': { |
| 4 | + 'Wikipedia article': { |
5 | 5 | 'type': 'document', |
6 | 6 | 'children': [ |
7 | 7 | { |
— | — | @@ -225,7 +225,7 @@ |
226 | 226 | } |
227 | 227 | ] |
228 | 228 | }, |
229 | | - 'Headings and paragraphs': { |
| 229 | + 'Formatting': { |
230 | 230 | 'type': 'document', |
231 | 231 | 'children': [ |
232 | 232 | { |
— | — | @@ -351,12 +351,7 @@ |
352 | 352 | { |
353 | 353 | 'type': 'pre', |
354 | 354 | 'content': { 'text': 'A lot of text goes here... and at some point it wraps.. A lot of text goes here... and at some point it wraps.. A lot of text goes here... and at some point it wraps.. A lot of text goes here... and at some point it wraps.. A lot of text goes here... and at some point it wraps..' } |
355 | | - } |
356 | | - ] |
357 | | - }, |
358 | | - 'Lists': { |
359 | | - 'type': 'document', |
360 | | - 'children': [ |
| 355 | + }, |
361 | 356 | { |
362 | 357 | 'type': 'heading', |
363 | 358 | 'attributes': { 'level': 1 }, |
— | — | @@ -474,6 +469,7 @@ |
475 | 470 | } |
476 | 471 | ] |
477 | 472 | }, |
| 473 | + /* |
478 | 474 | 'Tables': { |
479 | 475 | 'type': 'document', |
480 | 476 | 'children': [ |
— | — | @@ -555,7 +551,7 @@ |
556 | 552 | ] |
557 | 553 | } |
558 | 554 | ] |
559 | | - }, |
| 555 | + },*/ |
560 | 556 | 'New document': { |
561 | 557 | 'type': 'document', |
562 | 558 | 'children': [ |
— | — | @@ -566,9 +562,7 @@ |
567 | 563 | ] |
568 | 564 | } |
569 | 565 | }; |
570 | | - window.documentModel = es.DocumentModel.newFromPlainObject( |
571 | | - wikidoms['Direct manipulation interface'] |
572 | | - ); |
| 566 | + window.documentModel = es.DocumentModel.newFromPlainObject( wikidoms['Wikipedia article'] ); |
573 | 567 | window.surfaceModel = new es.SurfaceModel( window.documentModel ); |
574 | 568 | window.surfaceView = new es.SurfaceView( $( '#es-editor' ), window.surfaceModel ); |
575 | 569 | window.toolbarView = new es.ToolbarView( $( '#es-toolbar' ), window.surfaceView ); |