thread-pond / signature-pad

A jQuery plugin for assisting in the creation of an HTML5 canvas based signature pad. Records the drawn signature in JSON for later regeneration.
BSD 3-Clause "New" or "Revised" License
727 stars 292 forks source link

how to create (edit) optipon so I can generate a canvas fom exsist data #202

Open tryagain-3 opened 5 years ago

tryagain-3 commented 5 years ago

I used Signature-pad to make a sketch field and I save the hidden input value in the database. now I need to let the user edit the sketch again if he needs, so any way to sync the sketch and the hidden field, so I generate the old sketch and also its the option to clear the sketch and draw it again

any way to add undo option?

ten9inc commented 5 years ago

See Regenerating Signatures

mockdeep commented 5 years ago

Thanks for following up @ten9inc. @tryagain-3 did you get your issue sorted out? You can also use the clearCanvas() option to clear out the signature via JavaScript and the user will be able to clear it themselves if you add a .clearButton for SignaturePad to attach to.