Index: trunk/extensions/VisualEditor/modules/parser/mediawiki.DOMConverter.js |
— | — | @@ -215,8 +215,7 @@ |
216 | 216 | if ( !parNode ) { |
217 | 217 | newPara(); |
218 | 218 | } |
219 | | - offset = 0; |
220 | | - res = this._convertHTMLAnnotation( cnode, 0, annotationtype ); |
| 219 | + res = this._convertHTMLAnnotation( cnode, offset, annotationtype ); |
221 | 220 | //console.log( 'res leaf: ' + JSON.stringify(res, null, 2)); |
222 | 221 | offset += res.text.length; |
223 | 222 | parNode.content.text += res.text; |