Ticket #3740: 3740.patch

File 3740.patch, 967 bytes (added by Garry Yao, 15 years ago)
  • _source/plugins/pastefromword/dialogs/pastefromword.js

     
    140140                },
    141141                onShow : function()
    142142                {
     143                        // To avoid JAWS putting virtual cursor back to the editor document,
     144                        // disable main document 'contentEditable' during dialog opening.
    143145                        if ( CKEDITOR.env.ie )
    144146                                this.getParentEditor().document.getBody().$.contentEditable = 'false';
    145147
     
    215217                                                this.getValueOf( 'general', 'ignoreFontFace' ),
    216218                                                this.getValueOf( 'general', 'removeStyle' ) );
    217219
    218                         editor.insertHtml( html );
     220                                // Insertion should happen after main document design mode turned on.
     221                                setTimeout( function(){
     222                                        editor.insertHtml( html );
     223                                }, 0 );
    219224                },
    220225                onHide : function()
    221226                {
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy