Changeset 40786
- Timestamp:
- 05/18/2017 10:24:57 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js
r40110 r40786 913 913 dom.insertAfter( p, captionParent ); 914 914 editor.selection.setCursorLocation( p, 0 ); 915 916 // If the image is selected and the user pastes "over" it, 917 // replace both the image and the caption elements with the pasted content. 918 // This matches the behavior when pasting over non-caption images. 919 if ( node.nodeName === 'IMG' ) { 920 editor.$( captionParent ).remove(); 921 } 922 915 923 editor.nodeChanged(); 916 924 } else {
Note: See TracChangeset
for help on using the changeset viewer.