Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.js |
— | — | @@ -405,6 +405,11 @@ |
406 | 406 | setTimeout( function() { |
407 | 407 | // Unwrap the span found in webkit copies |
408 | 408 | 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 | + }); |
409 | 414 | context.$content.find( 'span.Apple-style-span' ).each( function() { |
410 | 415 | $( this.childNodes ).insertBefore( this ); |
411 | 416 | } ).remove(); //Apple Richtext |