Im using the Kendo UI Editor and I'd like to dynamically display QrCodes into the Editor.
So Ive added a Custom Tool Button item that calls the following method:
function
insertQRCodeTest() {
var
editor = getEditor();
var
qrCodeDiv =
"<div id='qrCode1'></div>"
;
editor.exec(
"insertHtml"
, { html: qrCodeDiv, split:
false
});
$(
"#qrCode1"
).kendoQRCode({
errorCorrection:
"M"
,
size: 120,
border: {
color:
"#000000"
,
width: 5
}
});
}
The qrCode1 div is added however the QrCode is not genearted\displayed - is this even possible?