mirror of
https://github.com/24eme/signaturepdf.git
synced 2023-08-25 09:33:08 +02:00
Copié collé du canva actif
This commit is contained in:
parent
8fc7f5f8a1
commit
ca1a6eddd3
11
js/app.js
11
js/app.js
@ -79,12 +79,11 @@ loadingTask.promise.then(function(pdf) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(event.ctrlKey && event.key == 'c') {
|
if(event.ctrlKey && event.key == 'c') {
|
||||||
canvasEditions.forEach(function(canvasEdition, index) {
|
if(!activeCanvas || !activeCanvas.getActiveObject()) {
|
||||||
if(!canvasEdition.getActiveObject()) {
|
return;
|
||||||
return;
|
}
|
||||||
}
|
copiedObject = fabric.util.object.clone(activeCanvas.getActiveObject());
|
||||||
copiedObject = fabric.util.object.clone(canvasEdition.getActiveObject());
|
|
||||||
});
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
<div class="form-check form-switch float-end"><input class="form-check-input" type="radio" name="radio_signature" id="radio_signature_image"></div>
|
<div class="form-check form-switch float-end"><input class="form-check-input" type="radio" name="radio_signature" id="radio_signature_image"></div>
|
||||||
<h5><i class="bi bi-image"></i> Image</h5>
|
<h5><i class="bi bi-image"></i> Image</h5>
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<img id="img-upload" class="d-none" style="max-height: 80px" src="" />
|
<img id="img-upload" class="d-none" style="max-height: 80px; max-width: 235px;" src="" />
|
||||||
</div>
|
</div>
|
||||||
<form id="form-image-upload" action="/image2svg" method="POST" enctype="multipart/form-data">
|
<form id="form-image-upload" action="/image2svg" method="POST" enctype="multipart/form-data">
|
||||||
<input id="input-image-upload" class="form-control" name="image" type="file">
|
<input id="input-image-upload" class="form-control" name="image" type="file">
|
||||||
|
Loading…
Reference in New Issue
Block a user