r106049 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106048‎ | r106049 | r106050 >
Date:17:49, 13 December 2011
Author:tparscal
Status:ok
Tags:
Comment:
Renamed, merged and disabled some example documents
Modified paths:
  • /trunk/extensions/VisualEditor/modules/sandbox/sandbox.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/sandbox/sandbox.js
@@ -1,6 +1,6 @@
22 $(document).ready( function() {
33 var wikidoms = {
4 - 'Direct manipulation interface': {
 4+ 'Wikipedia article': {
55 'type': 'document',
66 'children': [
77 {
@@ -225,7 +225,7 @@
226226 }
227227 ]
228228 },
229 - 'Headings and paragraphs': {
 229+ 'Formatting': {
230230 'type': 'document',
231231 'children': [
232232 {
@@ -351,12 +351,7 @@
352352 {
353353 'type': 'pre',
354354 '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+ },
361356 {
362357 'type': 'heading',
363358 'attributes': { 'level': 1 },
@@ -474,6 +469,7 @@
475470 }
476471 ]
477472 },
 473+ /*
478474 'Tables': {
479475 'type': 'document',
480476 'children': [
@@ -555,7 +551,7 @@
556552 ]
557553 }
558554 ]
559 - },
 555+ },*/
560556 'New document': {
561557 'type': 'document',
562558 'children': [
@@ -566,9 +562,7 @@
567563 ]
568564 }
569565 };
570 - window.documentModel = es.DocumentModel.newFromPlainObject(
571 - wikidoms['Direct manipulation interface']
572 - );
 566+ window.documentModel = es.DocumentModel.newFromPlainObject( wikidoms['Wikipedia article'] );
573567 window.surfaceModel = new es.SurfaceModel( window.documentModel );
574568 window.surfaceView = new es.SurfaceView( $( '#es-editor' ), window.surfaceModel );
575569 window.toolbarView = new es.ToolbarView( $( '#es-toolbar' ), window.surfaceView );

Status & tagging log