Ticket #4734: 4734.patch

File 4734.patch, 1.7 KB (added by Garry Yao, 14 years ago)
  • _source/plugins/richcombo/plugin.js

     
    118118                                        else
    119119                                                _.list.unmarkAll();
    120120
     121                                        // Selection will be unavailable after panel shows up
     122                                        // in IE, lock it now.
     123                                        if ( CKEDITOR.env.ie )
     124                                        {
     125                                                var selection = editor.getSelection();
     126                                                selection && selection.lock();
     127                                        }
     128
    121129                                        _.panel.showBlock( this.id, new CKEDITOR.dom.element( $element ), 4 );
    122130                                },
    123131                                this );
     
    248256
    249257                                        me._.on = 0;
    250258
     259                                        if ( CKEDITOR.env.ie )
     260                                        {
     261                                                var selection = editor.getSelection();
     262                                                selection && selection.unlock( true );
     263                                        }
     264
    251265                                        if ( me.onClose )
    252266                                                me.onClose();
    253267                                };
  • _source/plugins/panelbutton/plugin.js

     
    3636                        return;
    3737                }
    3838
     39                // Selection will be unavailable after panel shows up
     40                // in IE, lock it now.
     41                if ( CKEDITOR.env.ie )
     42                {
     43                        var selection = editor.getSelection();
     44                        selection && selection.lock();
     45                }
     46
    3947                _.panel.showBlock( this._.id, this.document.getById( this._.id ), 4 );
    4048        };
    4149
     
    122130
    123131                                                _.on = 0;
    124132
     133                                                if ( CKEDITOR.env.ie )
     134                                                {
     135                                                        var selection = editor.getSelection();
     136                                                        selection && selection.unlock( true );
     137                                                }
     138
    125139                                                if ( me.onClose )
    126140                                                        me.onClose();
    127141                                        };
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy