r62682 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62681‎ | r62682 | r62683 >
Date:00:25, 19 February 2010
Author:nimishg
Status:ok
Tags:
Comment:
more MS Word fun
Modified paths:
  • /trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.js
@@ -405,6 +405,11 @@
406406 setTimeout( function() {
407407 // Unwrap the span found in webkit copies
408408 context.$content.find( 'link, style, meta' ).remove(); //MS Word
 409+ context.$content.find('p:not(.wikiEditor) p:not(.wikiEditor)') //MS Word+webkit
 410+ .each( function(){
 411+ var outerParent = $(this).parent();
 412+ outerParent.replaceWith( outerParent.childNodes() );
 413+ });
409414 context.$content.find( 'span.Apple-style-span' ).each( function() {
410415 $( this.childNodes ).insertBefore( this );
411416 } ).remove(); //Apple Richtext

Follow-up revisions

RevisionCommit summaryAuthorDate
r62696Whitespace fixes for r62682catrope10:13, 19 February 2010

Status & tagging log