Ticket #8321: 8321.patch

File 8321.patch, 653 bytes (added by Garry Yao, 13 years ago)
  • _source/core/dom/element.js

     
    798798                                }
    799799                        }
    800800
     801                        // empty inline element is considered as visible. (#8321)
     802                        if ( !isVisible )
     803                        {
     804                                var dtd = CKEDITOR.dtd[ this.getName() ];
     805                                if ( dtd && dtd[ '#' ] )
     806                                {
     807                                        var filler = this.getDocument().createText( '\uffef' );
     808                                        filler.appendTo( this );
     809                                        isVisible = this.$.offsetHeight || this.$.offsetWidth;
     810                                        filler.remove();
     811                                }
     812                        }
     813
    801814                        return !!isVisible;
    802815                },
    803816
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy