Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.js |
— | — | @@ -330,7 +330,7 @@ |
331 | 331 | context.$content = $( context.$iframe[0].contentWindow.document.body ); |
332 | 332 | // We need to properly escape any HTML entities like &, < and > so they end up as visible |
333 | 333 | // characters rather than actual HTML tags in the code editor container. |
334 | | - context.$content.html( $( '<div />' ).text( context.$textarea.val() ).html() ); |
| 334 | + context.$content.append( $( '<div />' ).text( context.$textarea.val() ).html() ); |
335 | 335 | // Reflect direction of parent frame into child |
336 | 336 | if ( $( 'body' ).is( '.rtl' ) ) { |
337 | 337 | context.$content.addClass( 'rtl' ).attr( 'dir', 'rtl' ); |