Changeset 27098
- Timestamp:
- 02/05/2014 02:06:10 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js
r27051 r27098 496 496 497 497 editor.on( 'ObjectResized', function( event ) { 498 var parent, 498 var parent, width, 499 499 node = event.target; 500 500 501 501 if ( node.nodeName === 'IMG' && ( parent = editor.dom.getParent( node, '.wp-caption' ) ) ) { 502 editor.dom.setStyle( parent, 'width', 10 + event.width + 'px' ); 502 width = event.width || editor.dom.getAttrib( node, 'width' ); 503 504 if ( width ) { 505 width = parseInt( width, 10 ) + 10; 506 editor.dom.setStyle( parent, 'width', width + 'px' ); 507 } 503 508 } 504 509 });
Note: See TracChangeset
for help on using the changeset viewer.