File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed
app/code/Magento/PageBuilder/view/adminhtml/web
template/form/element/uploader/preview Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
- * Copyright © Magento, Inc. All rights reserved.
3
- * See COPYING.txt for license details .
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved .
4
4
*/
5
5
6
6
define ( [
@@ -20,9 +20,11 @@ define([
20
20
21
21
$ ( '#' + fileId ) . closest ( '.file-uploader-area' ) . attr ( 'upload-area-id' , fileName ) ;
22
22
$ ( fileInput ) . replaceWith ( spanElement ) ;
23
+
23
24
$ ( '#' + fileId ) . closest ( '.file-uploader-area' ) . find ( '.file-uploader-button:first' ) . on ( 'click' , function ( ) {
24
25
$ ( this ) . closest ( '.file-uploader-area' ) . find ( '.uppy-Dashboard-browse' ) . trigger ( 'click' ) ;
25
26
} ) ;
27
+
26
28
$ ( '#' + fileId + fileClass ) . closest ( '.file-uploader-area' ) . find ( '.action-upload-image' ) . on ( 'click' , function ( ) {
27
29
$ ( this ) . closest ( '.file-uploader-area' ) . find ( '.uppy-Dashboard-browse' ) . trigger ( 'click' ) ;
28
30
} ) ;
Original file line number Diff line number Diff line change 46
46
< div class ="file-uploader image-uploader ">
47
47
< div class ="file-uploader-area " if ="visibleControls ">
48
48
< p class ="image-upload-instructions " translate ="translations.dragImageHere "> </ p >
49
- < input type ="file " class ="file-upload-empty-preview " afterRender ="onElementRender " attr ="id: uid, name: inputName, multiple: isMultipleFiles " disable ="disabled "/>
50
- < label class ="file-uploader-button action-default action-upload-image " attr ="for: uid " disable ="disabled " translate ="translations.uploadImage "> </ label >
49
+ < input
50
+ type ="file "
51
+ class ="file-upload-empty-preview "
52
+ afterRender ="onElementRender "
53
+ attr ="id: uid, name: inputName, multiple: isMultipleFiles "
54
+ disable ="disabled "> </ input >
55
+ < label
56
+ class ="file-uploader-button action-default action-upload-image "
57
+ attr ="for: uid "
58
+ disable ="disabled "
59
+ translate ="translations.uploadImage "> </ label >
51
60
< span translate ="translations.or "> </ span >
52
61
< label
53
62
data-bind ="event: {change: addFileFromMediaGallery, click: openMediaBrowserDialog} "
You can’t perform that action at this time.
0 commit comments