Ticket #8949: 8949.patch

File 8949.patch, 928 bytes (added by Garry Yao, 11 years ago)
  • _source/plugins/wysiwygarea/plugin.js

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    11121112                                                                        isPendingFocus = true;
    11131113                                                                else if ( win )
    11141114                                                                {
     1115                                                                        var sel = editor.getSelection(),
     1116                                                                                ieSel = sel && sel.getNative();
     1117
     1118                                                                        // IE considers control-type element as separate
     1119                                                                        // focus host when selected, avoid destroying the
     1120                                                                        // selection in such case. (#5812) (#8949)
     1121                                                                        if ( ieSel && ieSel.type == 'Control' )
     1122                                                                                return;
     1123
    11151124                                                                        // AIR needs a while to focus when moving from a link.
    11161125                                                                        CKEDITOR.env.air ? setTimeout( function () { win.focus(); }, 0 ) : win.focus();
    11171126                                                                        editor.selectionChange();
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy