364,085 Members | 5308 Browsing Online
Community for Developers & IT Professionals
Bytes IT Community

Copy to clipboard for Ext elements

Shif
P: 2
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,

Expand|Select|Wrap|Line Numbers
  1. var div = document.getElementById('divId');
  2. div.contentEditable = 'true';
  3. var controlRange;
  4. if (document.body.createControlRange) {
  5. controlRange = document.body.createControlRange();
  6. controlRange.addElement(div);
  7. controlRange.execCommand('Copy');
  8. }
  9. div.contentEditable = 'false';
Feb 15 '12 #1
Share this Question
Share on Google+
2 Replies


Shif
P: 2
Can anybody help me on resolving this issue?


Thanx in advance
Feb 16 '12 #2

gits
Expert Mod 2.5K+
P: 4,631
what would you expect to have pasted and where do you paste it?
Feb 16 '12 #3

Post your reply

Help answer this question



Didn't find the answer to your JavaScript / Ajax / DHTML question?

You can also browse similar questions: JavaScript / Ajax / DHTML