Changes between Version 1 and Version 2 of Ticket #11526, comment 4


Ignore:
Timestamp:
Feb 3, 2014, 4:13:15 PM (7 years ago)
Author:
Piotr Jasiun
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11526, comment 4

    v1 v2  
    3737|| IE 8       ||  yes   ||    no    || setData( 'text' ) on copy       ||
    3838
    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{{{
     42droparea.oncopy = function ( evt ) {
     43        window.clipboardData.setData("Text","some test text");
     44};
     45}}}
© 2003 – 2020 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy