Ticket #5801: 5801.patch

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

     
    815815
    816816                        // IE8 stricts mode doesn't have 'contentEditable' in effect
    817817                        // on element unless it has layout. (#5562)
    818                         if ( CKEDITOR.env.ie8 )
     818                        if ( CKEDITOR.env.ie8Compat )
     819                        {
    819820                                editor.addCss( 'html.CSS1Compat [contenteditable=false]{ min-height:0 !important;}' );
    820821
     822                                var selectors = [];
     823                                for ( var tag in CKEDITOR.dtd.$removeEmpty )
     824                                        selectors.push( 'html.CSS1Compat ' + tag + '[contenteditable=false]' );
     825                                selectors.join( ',' );
     826                                editor.addCss( selectors + '{ display:inline-block;}' );
     827                        }
     828
    821829                        // Switch on design mode for a short while and close it after then.
    822830                        function blinkCursor()
    823831                        {
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy