Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.js |
— | — | @@ -390,9 +390,10 @@ |
391 | 391 | } |
392 | 392 | setTimeout( function() { |
393 | 393 | // Unwrap the span found in webkit copies |
| 394 | + context.$content.find( 'link, style, meta' ).remove(); //MS Word |
394 | 395 | context.$content.find( 'span.Apple-style-span' ).each( function() { |
395 | 396 | $( this.childNodes ).insertBefore( this ); |
396 | | - } ).remove(); |
| 397 | + } ).remove(); //Apple Richtext |
397 | 398 | var $selection = context.$content.find( ':not(.wikiEditor)' ); |
398 | 399 | while ( $selection.length && $selection.length > 0 ) { |
399 | 400 | var $currentElement = $selection.eq( 0 ); |