r105483 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r105482‎ | r105483 | r105484 >
Date:23:16, 7 December 2011
Author:inez
Status:deferred
Tags:
Comment:
When wraping any leaf node in list item make sure to convert it to paragraph first.
Modified paths:
  • /trunk/extensions/VisualEditor/modules/es/tools/es.ListButtonTool.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/es/tools/es.ListButtonTool.js
@@ -105,7 +105,10 @@
106106 'type': 'listItem',
107107 'attributes' : { 'styles': [ this.name ] }
108108 } ] )
109 - .concat( stacks[i][j].getElementData() )
 109+ //.concat( stacks[i][j].getElementData() )
 110+ .concat( [ { 'type': 'paragraph' } ] )
 111+ .concat( stacks[i][j].getContentData() )
 112+ .concat( [ { 'type': '/paragraph' } ] )
110113 .concat( [ { 'type': '/listItem' } ] );
111114 }
112115 data = data.concat( [ { 'type': '/list' } ] );

Status & tagging log