Index: _whatsnew.html
===================================================================
--- _whatsnew.html (revision 2053)
+++ _whatsnew.html (working copy)
@@ -122,6 +122,8 @@
Safari 3.1 browser bug which caused the Fit Window button to give a blank screen.
[#2218] Improved Gecko based browser
detection to accept Epiphany/Gecko as well.
+ [#1150] Fixed the type="_moz" attribute
+ that sometimes appear in <br> tags in non-IE browsers.
Version 2.6
Index: editor/_source/internals/fckxhtml.js
===================================================================
--- editor/_source/internals/fckxhtml.js (revision 2052)
+++ editor/_source/internals/fckxhtml.js (working copy)
@@ -204,9 +204,16 @@
// Ignore bogus BR nodes in the DOM.
if ( FCKBrowserInfo.IsGecko &&
- htmlNode.nextSibling &&
( htmlNode.hasAttribute('_moz_editor_bogus_node') || htmlNode.getAttribute( 'type' ) == '_moz' ) )
- return false ;
+ {
+ if ( htmlNode.nextSibling )
+ return false ;
+ else
+ {
+ htmlNode.removeAttribute( '_moz_editor_bogus_node' ) ;
+ htmlNode.removeAttribute( 'type' ) ;
+ }
+ }
// This is for elements that are instrumental to FCKeditor and
// must be removed from the final HTML.