Changeset 29370
- Timestamp:
- 08/04/2014 12:51:19 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js
r28615 r29370 795 795 editor.selection.setCursorLocation( p, 0 ); 796 796 editor.nodeChanged(); 797 798 if ( tinymce.Env.ie > 8 ) {799 setTimeout( function() {800 editor.selection.setCursorLocation( p, 0 );801 editor.selection.setContent( event.value );802 }, 500 );803 804 return false;805 }806 797 } 807 798 } else if ( cmd === 'JustifyLeft' || cmd === 'JustifyRight' || cmd === 'JustifyCenter' ) { 808 799 node = editor.selection.getNode(); 809 800 align = cmd.substr(7).toLowerCase(); 810 align = 'align' + align; 801 align = 'align' + align, 802 DL = dom.getParent( node, 'dl.wp-caption' ); 811 803 812 804 removeToolbar(); 813 814 if ( dom.is( node, 'dl.wp-caption' ) ) {815 DL = node;816 } else {817 DL = dom.getParent( node, 'dl.wp-caption' );818 }819 805 820 806 if ( DL ) { … … 828 814 } 829 815 830 return false; 816 if ( node.nodeName === 'IMG' ) { 817 // Re-select the image to update resize handles, etc. 818 editor.nodeChanged(); 819 } 820 821 event.preventDefault(); 831 822 } 832 823
Note: See TracChangeset
for help on using the changeset viewer.