Ticket #1150: 1150.patch
File 1150.patch, 1.4 KB (added by , 16 years ago) |
---|
-
_whatsnew.html
122 122 Safari 3.1 browser bug which caused the Fit Window button to give a blank screen.</li> 123 123 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2218">#2218</a>] Improved Gecko based browser 124 124 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 <br> tags in non-IE browsers.</li> 125 127 </ul> 126 128 <h3> 127 129 Version 2.6</h3> -
editor/_source/internals/fckxhtml.js
204 204 205 205 // Ignore bogus BR nodes in the DOM. 206 206 if ( FCKBrowserInfo.IsGecko && 207 htmlNode.nextSibling &&208 207 ( 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 } 210 217 211 218 // This is for elements that are instrumental to FCKeditor and 212 219 // must be removed from the final HTML.