Changeset 38328
- Timestamp:
- 08/23/2016 04:42:58 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js
r38156 r38328 631 631 captionAlign = '', 632 632 captionWidth = '', 633 wrap, parent, node, html, imgId; 633 imgId = null, 634 wrap, parent, node, html; 634 635 635 636 // Temp image id so we can find the node later … … 797 798 798 799 imgNode = dom.get('__wp-temp-img-id'); 799 dom.setAttrib( imgNode, 'id', imgId );800 dom.setAttrib( imgNode, 'id', imgId || null ); 800 801 event.imgData.node = imgNode; 801 802 }); … … 977 978 }; 978 979 980 editor.on( 'beforeGetContent', function( event ) { 981 if ( event.format !== 'raw' ) { 982 editor.$( 'img[id="__wp-temp-img-id"]' ).attr( 'id', null ); 983 } 984 }); 985 979 986 editor.on( 'BeforeSetContent', function( event ) { 980 987 if ( event.format !== 'raw' ) {
Note: See TracChangeset
for help on using the changeset viewer.