Ticket #5280: 5280.patch

File 5280.patch, 1.6 KB (added by Frederico Caldeira Knabben, 14 years ago)
  • _source/plugins/selection/plugin.js

     
    193193                                                        restoreEnabled = 1;
    194194                                                });
    195195
     196                                                // In IE6/7 the blinking cursor appears, but contents are
     197                                                // not editable. (#5634)
     198                                                if ( CKEDITOR.env.ie && ( CKEDITOR.env.ie7Compat || CKEDITOR.env.version < 8 || CKEDITOR.env.quirks ) )
     199                                                {
     200                                                        // The 'click' event is not fired when clicking the
     201                                                        // scrollbars, so we can use it to check whether
     202                                                        // the empty space following <body> has been clicked.
     203                                                        html.on( 'click', function( evt )
     204                                                        {
     205                                                                if ( evt.data.getTarget().getName() == 'html' )
     206                                                                        editor.getSelection().getRanges()[ 0 ].select();
     207                                                        });
     208                                                }
     209
    196210                                                // IE fires the "selectionchange" event when clicking
    197211                                                // inside a selection. We don't want to capture that.
    198212                                                body.on( 'mousedown', function ()
  • _source/plugins/wysiwygarea/plugin.js

     
    928928                                        focusGrabber.on( 'focus', function()
    929929                                                {
    930930                                                        editor.focus();
    931 
    932                                                         // In IE7 the blinking cursor appears, but contents are not editable. (#5634)
    933                                                         if ( CKEDITOR.env.ie7Compat )
    934                                                                 editor.getSelection().getRanges()[ 0 ].select();
    935931                                                } );
    936932                                } );
    937933                                editor.on( 'destroy', function()
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy