Hi again,
thanks for the tip so far! I managed it by adding this code right after the sigFieldInit call:
sigFieldInit(i);
bg_img.onload = function(){
var cnvs = document.getElementById("wpcf7_my_signature");
var ctx = cnvs.getContext("2d");
ctx.drawImage(bg_img, 0, 0, 280, 505);
}
Looks fine, but when the user clicks “Clear” it clears the background too. Adding same code in the sigFieldClear function did not work out.
EDIT: Looks like our latest answers intersected. ??
Can you tell me where exactly to add this to fix the clear/resize issue?