Changeset 2219

Show
Ignore:
Timestamp:
2008-07-15 08:10:49 (5 months ago)
Author:
martinkou
Message:

Fixed #1150 : Fixed the type="_moz" attribute that sometimes appear in <br> tags in non-IE browsers.

Location:
FCKeditor/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/internals/fckxhtml.js

    r2030 r2219  
    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 
  • FCKeditor/trunk/_whatsnew.html

    r2215 r2219  
    8585                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2356">#2356</a>] Fixed access denied 
    8686                        error in IE7 when FCKeditor is launched from local filesystem.</li> 
     87                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1150">#1150</a>] Fixed the type="_moz" attribute 
     88                        that sometimes appear in &lt;br&gt; tags in non-IE browsers.</li> 
    8789        </ul> 
    8890        <p>