Changes between Version 1 and Version 2 of Ticket #12192, comment 6


Ignore:
Timestamp:
Oct 8, 2014, 11:27:32 AM (9 years ago)
Author:
Piotrek Koszuliński
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12192, comment 6

    v1 v2  
    1 Cursor disappears if editor has focus when download dialog is shown. This is the reason why "download file" button works and toolbar button does not. The simplest workaround is to blur editor right before dialog is shown:
     1Cursor disappears if the editor has focus when the download dialog is shown. This is the reason why "download file" button works and toolbar button does not. The simplest workaround is to blur the editor right before the dialog is shown:
    22
    33{{{
    44function downloadFile() {
    5     document.getElementById('editor1').blur();
     5    document.getElementById( 'editor1' ).blur();
    66    document.location = 'data:Application/octet-stream,0';
    77}
     
    1313editor.editable().setAttribute( 'contentEditable', true );
    1414}}}
    15 But you need to do it when dialog is closed, not earlier.
     15But you need to do it when the dialog is closed, not earlier.
    1616
    17 Does this solution works for you?
     17Does this solution work for you?
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy