|
9 | 9 | <div class="pagebuilder-options-wrapper">
|
10 | 10 | <ul class="pagebuilder-options-links">
|
11 | 11 | <li class="pagebuilder-options-link">
|
12 |
| - <label |
13 |
| - data-bind="event: {mousedown: stopEvent}" |
14 |
| - class="file-uploader-button action-default action-upload-image" |
15 |
| - attr="for: uid" |
16 |
| - disable="disabled" |
17 |
| - translate="translations.uploadNewImage"></label> |
| 12 | + <span class="file-uploader-area" if="visibleControls"> |
| 13 | + <input |
| 14 | + type="file" |
| 15 | + afterRender="onElementRender" |
| 16 | + attr="id: uid, name: inputName, multiple: isMultipleFiles" |
| 17 | + class="file-upload-options-link" |
| 18 | + disable="disabled"></input> |
| 19 | + <label |
| 20 | + data-bind="event: {mousedown: stopEvent}" |
| 21 | + class="file-uploader-button action-default action-upload-image" |
| 22 | + attr="for: uid" |
| 23 | + disable="disabled" |
| 24 | + translate="translations.uploadNewImage"></label> |
| 25 | + </span> |
18 | 26 | </li>
|
19 | 27 | <li class="pagebuilder-options-link">
|
20 | 28 | <label
|
|
33 | 41 | <div class="pagebuilder-image-uploader-container-dropzone-overlay" if="visibleControls">
|
34 | 42 | <span class="dropzone-placeholder-text" translate="translations.dropHere"></span>
|
35 | 43 | </div>
|
36 |
| - <div class="file-uploader-area" if="visibleControls"> |
37 |
| - <input |
38 |
| - type="file" |
39 |
| - afterRender="onElementRender" |
40 |
| - attr="id: uid, name: inputName, multiple: isMultipleFiles" |
41 |
| - disable="disabled"></input> |
42 |
| - </div> |
43 | 44 | <div class="pagebuilder-image-empty-preview" data-bind="visible: !hasData() && isShowImageUploadInstructions">
|
44 | 45 | <div class="admin__field-control">
|
45 | 46 | <div class="file-uploader image-uploader">
|
46 |
| - <div class="image-uploader-area" if="visibleControls"> |
| 47 | + <div class="file-uploader-area" if="visibleControls"> |
47 | 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"/> |
48 | 50 | <label class="file-uploader-button action-default action-upload-image" attr="for: uid" disable="disabled" translate="translations.uploadImage"></label>
|
49 | 51 | <span translate="translations.or"></span>
|
50 | 52 | <label
|
|
0 commit comments