Add clear button in handwriting plugin
Add clear button in handwriting plugin
Good evening,
I am successfully using the handwriting plugin.
With signaturePad it is possible to delete the signature and rewrite it before confirming the form.
This is done by inserting a button, for example:
<button type="button" class="btn btn-secondary btn-sm" onclick="signaturePad.clear();"><i class="fa fa-trash-o fa-lg"></i></button>
I think it would be useful to be able to use this within the editor but I am not smart enough to understand how to do it...
Thank you,
Giuseppe
This question has accepted answers - jump to:
Answers
Hi Giuseppe,
You'd need to add the button into the HTML that the plug-in adds to the page (lines 20-22 in the plug-in presented here) and then use an event handler (rather than the DOM0 global event).
This should do the job:
Allan
Here is a completed integration:
I'll put it on our plug-ins page for Editor with the 2.1 release next week.
Allan
Add this CSS as well: