а

Copy to clipboard crash


#1

Hello!
Has someone experienced issues with dhtmlx Grid while trying to copy to clipboard? I am using dhtmlx version 5.0.8 and have a crash while trying to execute .gridToClipboard(); The problem is “Uncaught TypeError: Illegal constructor” and I have found that is coming from “new Clipboard()” from this code:

dhtmlXGridObject.prototype.toClipBoard = function(a) {
if (window.clipboardData) {
window.clipboardData.setData(“Text”, a)
} else {
(new Clipboard()).copy(a)
}
}

Is there any external library that need to be included or am I missing something?


#2

dhtmlxgrid|_nxml.js extension should be included on the page for the gridToClipboard() method.
It is available in PRO version only.