Ticket #3953: 3953.patch

File 3953.patch, 2.2 KB (added by Tobiasz Cudnik, 15 years ago)
  • _source/plugins/pastefromword/dialogs/pastefromword.js

     
    1818                                                + 'document.designMode = "on";'
    1919                                        + 'var iframe = new window.parent.CKEDITOR.dom.element( frameElement );'
    2020                                        + 'var dialog = iframe.getCustomData( "dialog" );'
     21                      + ''
     22                                        + 'iframe.getFrameDocument().on( "keydown", function( e )\
     23                                                {\
     24                                                        if ( e.data.getKeystroke() == 27 )\
     25                                                                dialog.hide();\
     26                                                });'
    2127                                        + 'dialog.fire( "iframeAdded", { iframe : iframe } );'
    2228                                + '};'
    2329                                + '</script><style>body { margin: 3px; height: 95%; } </style><body></body>',
  • _source/plugins/clipboard/dialogs/paste.js

     
    2121                                                + 'document.designMode = "on";'
    2222                                        + 'var iframe = new window.parent.CKEDITOR.dom.element( frameElement );'
    2323                                        + 'var dialog = iframe.getCustomData( "dialog" );'
    24                                         + 'dialog.fire( "iframeAdded", { iframe : iframe } );'
     24                      + ''
     25                                        + 'iframe.getFrameDocument().on( "keydown", function( e )\
     26                                                {\
     27                                                        if ( e.data.getKeystroke() == 27 )\
     28                                                                dialog.hide();\
     29                                                });'
    2530                                + '};'
    2631                                + '</script><style>body { margin: 3px; height: 95%; } </style><body></body>',
    2732
  • CHANGES.html

     
    137137                <li><a href="http://dev.fckeditor.net/ticket/3782">#3782</a> : Remove empty list in table cell result in collapsed cell.</li>
    138138                <li>Updated the following language files:<ul>
    139139                        <li><a href="http://dev.fckeditor.net/ticket/3837">#3837</a> : Brazilian Portuguese.</li>
     140                        <li><a href="http://dev.fckeditor.net/ticket/3953">#3953</a> : Fixed keystroke for close Paste dialog.</li>
    140141                </ul>
    141142                </li>
    142143        </ul>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy