I have written the code to copy to clip board option but when i am trying to paste the content which has Ext.pivotGrid only text is getting copied not the grid. Also alignment is different from the web page.
Code is,
- var div = document.getElementById('divId');
-
div.contentEditable = 'true';
-
var controlRange;
-
if (document.body.createControlRange) {
-
controlRange = document.body.createControlRange();
-
controlRange.addElement(div);
-
controlRange.execCommand('Copy');
-
}
-
div.contentEditable = 'false';