Ticket #5759: 5759.patch

File 5759.patch, 597 bytes (added by Sa'ar Zac Elias, 14 years ago)

Proposed patch

  • _source/plugins/selection/plugin.js

     
    235235
    236236                                                                // Avoid saving selection from within text input. (#5747)
    237237                                                                var parentTag;
    238                                                                 if ( nativeSel.type == 'Text'
     238                                                                if ( nativeSel && nativeSel.type == 'Text'
    239239                                                                        && ( parentTag = nativeSel.createRange().parentElement().nodeName.toLowerCase() )
    240240                                                                        && parentTag in { input: 1, textarea : 1 } )
    241241                                                                {
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy