Ticket #5747: 5747.patch

File 5747.patch, 716 bytes (added by Garry Yao, 14 years ago)
  • _source/plugins/selection/plugin.js

     
    233233                                                                        }
    234234                                                                }
    235235
     236                                                                // Avoid saving selection from within text input. (#5747)
     237                                                                var parentTag;
     238                                                                if ( nativeSel.type == 'Text'
     239                                                                        && ( parentTag = nativeSel.createRange().parentElement().nodeName.toLowerCase() )
     240                                                                        && parentTag in { input: 1, textarea : 1 } )
     241                                                                {
     242                                                                        return;
     243                                                                }
     244
    236245                                                                savedRange = nativeSel && sel.getRanges()[ 0 ];
    237246
    238247                                                                checkSelectionChangeTimeout.call( editor );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy