469,307 Members | 1,927 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,307 developers. It's quick & easy.

Copy to clipboard for Ext elements

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
2 1987
Shif
2
Can anybody help me on resolving this issue?


Thanx in advance
Feb 16 '12 #2
gits
5,390 Expert Mod 4TB
what would you expect to have pasted and where do you paste it?
Feb 16 '12 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

By using this site, you agree to our Privacy Policy and Terms of Use.