Вызов jSignature с
var hiddenSignature = $('#signature' + i).jSignature();
hiddenSignature.jSignature('setData', 'base30' + signatureContentBase30);
выдает эту ошибку
jSignature.min.js:57 Uncaught Error: jSignature is unable to find import plugin with for format 'undefined'
at r.fn.init.f (jSignature.min.js:57)
at r.fn.init.$.fn.(formso365.nintex.com/Pages/anonymous function) [as jSignature] (https://progressivehomecare.sharepoint.com/sites/intakeworkflow-dev/SiteAssets/ScriptLibraries/jSignature.min.js:61:18)
at HTMLDivElement.<anonymous> (registerSignatureFields.js:49)
at Function.each (jquery-1.10.2.min.js:4)
at init.each (jquery-1.10.2.min.js:4)
at HTMLDocument.<anonymous> (registerSignatureFields.js:23)
at c (jquery-1.10.2.min.js:4)
at Object.add [as done] (jquery-1.10.2.min.js:4)
at init.ready (jquery-1.10.2.min.js:4)
at registerSignatureFields.js:14
Используя этот код
var hiddenSignature = $('#signature' + i).jSignature();
hiddenSignature.jSignature('setData', 'data:image/jsignature;base30,' + signatureContentBase30);
Я получаю ошибку
jSignature.min.js:65 Uncaught TypeError: Cannot read property 'split' of undefined
at v (jSignature.min.js:65)
at u (jSignature.min.js:65)
at HTMLCanvasElement.r (jSignature.min.js:66)
at r.fn.init.f (jSignature.min.js:57)
at r.fn.init.$.fn.(formso365.nintex.com/Pages/anonymous function) [as jSignature] (https://progressivehomecare.sharepoint.com/sites/intakeworkflow-dev/SiteAssets/ScriptLibraries/jSignature.min.js:61:18)
at HTMLDivElement.<anonymous> (registerSignatureFields.js:49)
at Function.each (jquery-1.10.2.min.js:4)
at init.each (jquery-1.10.2.min.js:4)
at HTMLDocument.<anonymous> (registerSignatureFields.js:23)
at c (jquery-1.10.2.min.js:4)
Я не знаю, что попробовать, и это мой первый раз с jSignature (переходит от кого-то другого)