39 | | You should call `preventDefault` on `copy` event to be able `paste` you own data. |
| 39 | - You should call `preventDefault` on `copy` event to be able `paste` you own data. |
| 40 | - Also IE seems to have security bug. If we call `setData` in `copy` event and not cancel that event then security dialog (asking use if he want allows script to read clipboard data) wont be shown and we can read clipboard whenever we want. It works like accepted dialog. |
| 41 | {{{ |
| 42 | droparea.oncopy = function ( evt ) { |
| 43 | window.clipboardData.setData("Text","some test text"); |
| 44 | }; |
| 45 | }}} |