Ticket #2002: 2002_2.patch

File 2002_2.patch, 0.8 kB (added by alfonsoml, 7 months ago)

Additional modification

  • editor/fckeditor.html

     
    342342                // Running in Chrome makes the window receive the event including subframes. 
    343343                // we care only about this window. Ticket #1642. 
    344344                // #2002: The originalTarget from the event can be the current document, the window, or the editing area. 
    345                 if ( e && e.originalTarget !== document && e.originalTarget !== window && e.originalTarget.ownerDocument != document ) 
     345                if ( e && e.originalTarget !== document && e.originalTarget !== window && (!e.originalTarget.ownerDocument || e.originalTarget.ownerDocument != document )) 
    346346                        return ; 
    347347 
    348348                var oCell = document.getElementById( 'xEditingArea' ) ;