File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
app/code/Magento/MediaGalleryUi/view/adminhtml/web/js/grid/columns/image Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ define([
4949 showLoader : true
5050 } ) . done ( $ . proxy ( function ( data ) {
5151 if ( typeof targetElement === 'function' ) {
52- targetElement ( data . content ) ;
52+ targetElement ( data . content , { text : record [ 'title' ] } ) ;
5353 } else if ( targetElement . is ( 'textarea' ) ) {
5454 this . insertAtCursor ( targetElement . get ( 0 ) , data . content ) ;
5555 targetElement . focus ( ) ;
Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ define([
307307 showLoader : true
308308 } ) . done ( $ . proxy ( function ( data ) {
309309 if ( typeof targetEl === 'function' ) {
310- targetEl ( data ) ;
310+ targetEl ( data , { text : fileRow . find ( 'img' ) . attr ( 'alt' ) } ) ;
311311 } else if ( targetEl . is ( 'textarea' ) ) {
312312 this . insertAtCursor ( targetEl . get ( 0 ) , data ) ;
313313 } else {
You can’t perform that action at this time.
0 commit comments