r62595 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62594‎ | r62595 | r62596 >
Date:20:51, 16 February 2010
Author:nimishg
Status:ok
Tags:
Comment:
MS paste issues resolved
Modified paths:
  • /trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.js
@@ -390,9 +390,10 @@
391391 }
392392 setTimeout( function() {
393393 // Unwrap the span found in webkit copies
 394+ context.$content.find( 'link, style, meta' ).remove(); //MS Word
394395 context.$content.find( 'span.Apple-style-span' ).each( function() {
395396 $( this.childNodes ).insertBefore( this );
396 - } ).remove();
 397+ } ).remove(); //Apple Richtext
397398 var $selection = context.$content.find( ':not(.wikiEditor)' );
398399 while ( $selection.length && $selection.length > 0 ) {
399400 var $currentElement = $selection.eq( 0 );

Status & tagging log