Changeset 32255
- Timestamp:
- 04/21/2015 06:35:50 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/mce-view.js
r32056 r32255 323 323 324 324 if ( content ) { 325 this.setContent( content, function( editor, node ) {325 this.setContent( content, function( editor, node, contentNode ) { 326 326 $( node ).data( 'rendered', true ); 327 this.bindNode.call( this, editor, node );327 this.bindNode.call( this, editor, node, contentNode ); 328 328 }, force ? null : false ); 329 329 } else { … … 347 347 */ 348 348 unbind: function() { 349 this.getNodes( function( editor, node ) {350 this.unbindNode.call( this, editor, node );349 this.getNodes( function( editor, node, contentNode ) { 350 this.unbindNode.call( this, editor, node, contentNode ); 351 351 $( node ).trigger( 'wp-mce-view-unbind' ); 352 352 }, true ); … … 486 486 self = this; 487 487 488 this.getNodes( function( editor, node, content ) {488 this.getNodes( function( editor, node, contentNode ) { 489 489 var dom = editor.dom, 490 490 styles = '', … … 505 505 var iframe, iframeDoc, observer, i; 506 506 507 content .innerHTML = '';508 509 iframe = dom.add( content , 'iframe', {507 contentNode.innerHTML = ''; 508 509 iframe = dom.add( contentNode, 'iframe', { 510 510 /* jshint scripturl: true */ 511 511 src: tinymce.Env.ie ? 'javascript:""' : '', … … 520 520 } ); 521 521 522 dom.add( content , 'div', { 'class': 'wpview-overlay' } );522 dom.add( contentNode, 'div', { 'class': 'wpview-overlay' } ); 523 523 524 524 iframeDoc = iframe.contentWindow.document; … … 604 604 } ); 605 605 606 callback && callback.call( self, editor, node );606 callback && callback.call( self, editor, node, contentNode ); 607 607 }, 50 ); 608 608 }, rendered );
Note: See TracChangeset
for help on using the changeset viewer.