Accept only images - when selecting files

This commit is contained in:
Sagi Dayan 2020-05-24 16:03:49 -04:00
parent f1cba399af
commit 31f01a2850
6 changed files with 335 additions and 7473 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -8,6 +8,7 @@
:prevent-white-space="true"
:show-remove-button="false"
:disable-drag-to-move="isDefaultImage"
:accept="'image/*'"
@new-image="isDefaultImage=false;zoomState=1"
></croppa>
</figure>

View file

@ -117,6 +117,7 @@
v-model="pages[currentPage].croppa"
:prevent-white-space="true"
:show-remove-button="false"
:accept="'image/*'"
:initial-image="pages[currentPage].image"
:width="croppaWidth"
:height="croppaHeight"