Ticket #5562: 5562.patch

File 5562.patch, 938 bytes (added by Garry Yao, 14 years ago)
  • _source/plugins/wysiwygarea/plugin.js

     
    365365                                                        body.disabled = true;
    366366                                                        body.contentEditable = true;
    367367                                                        body.removeAttribute( 'disabled' );
    368                                                 }
     368
     369                                                        // IE8 stricts mode doesn't have 'contentEditable' in effect
     370                                                        // on element unless it has layout. (#5562)
     371                                                        if ( CKEDITOR.env.ie8Compat
     372                                                                && domDocument.compatMode == 'CSS1Compat' )
     373                                                        {
     374                                                                var nonEditables = domDocument.querySelectorAll('[contenteditable=false]');
     375                                                                for ( var i = 0, count = nonEditables.length; i < count; i++ )
     376                                                                        nonEditables[ i ].runtimeStyle.display = 'inline-block';
     377                                                        }
     378                                                }
    369379                                                else
    370380                                                {
    371381                                                        // Avoid opening design mode in a frame window thread,
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy