Ticket #1150: 1150.patch

File 1150.patch, 1.4 KB (added by martinkou, 22 months ago)
  • _whatsnew.html

     
    122122                        Safari 3.1 browser bug which caused the Fit Window button to give a blank screen.</li>  
    123123                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2218">#2218</a>] Improved Gecko based browser 
    124124                        detection to accept Epiphany/Gecko as well.</li> 
     125                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1150">#1150</a>] Fixed the type="_moz" attribute 
     126                        that sometimes appear in &lt;br&gt; tags in non-IE browsers.</li> 
    125127        </ul> 
    126128        <h3> 
    127129                Version 2.6</h3> 
  • editor/_source/internals/fckxhtml.js

     
    204204 
    205205                        // Ignore bogus BR nodes in the DOM. 
    206206                        if ( FCKBrowserInfo.IsGecko && 
    207                                         htmlNode.nextSibling && 
    208207                                        ( htmlNode.hasAttribute('_moz_editor_bogus_node') || htmlNode.getAttribute( 'type' ) == '_moz' ) ) 
    209                                 return false ; 
     208                        { 
     209                                if ( htmlNode.nextSibling ) 
     210                                        return false ; 
     211                                else 
     212                                { 
     213                                        htmlNode.removeAttribute( '_moz_editor_bogus_node' ) ; 
     214                                        htmlNode.removeAttribute( 'type' ) ; 
     215                                } 
     216                        } 
    210217 
    211218                        // This is for elements that are instrumental to FCKeditor and 
    212219                        // must be removed from the final HTML.