Index: CHANGELOG.txt =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/wysiwyg/CHANGELOG.txt,v retrieving revision 1.143 diff -u -p -r1.143 CHANGELOG.txt --- CHANGELOG.txt 9 Jun 2009 00:18:11 -0000 1.143 +++ CHANGELOG.txt 9 Jun 2009 23:19:38 -0000 @@ -6,6 +6,7 @@ Wysiwyg x.x-x.x, xxxx-xx-xx Wysiwyg 6.x-2.x, xxxx-xx-xx --------------------------- +#474908 by TwoD: Fixed Teaser break causing error in IE8. by sun: Major code clean-up. #331089 by wwalc: Fixed FCKeditor toolbar buttons do not wrap. #407014 by sun: Fixed/removed migration from other editor integration modules. Index: plugins/break/break.js =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/wysiwyg/plugins/break/break.js,v retrieving revision 1.4 diff -u -p -r1.4 break.js --- plugins/break/break.js 27 Mar 2009 21:54:24 -0000 1.4 +++ plugins/break/break.js 9 Jun 2009 23:19:39 -0000 @@ -47,8 +47,12 @@ Drupal.wysiwyg.plugins['break'] = { */ detach: function(content, settings, instanceId) { var $content = $('
' + content + '
'); // No .outerHTML() in jQuery :( - // document.createComment() required or IE will strip the comment. - $('img.wysiwyg-break', $content).replaceWith(document.createComment('break')); + // #404532 document.createComment() required or IE will strip the comment. + // #474908 replaceWith() (calling clean()) in jQuery will fail in IE 8. + $.each($('img.wysiwyg-break', $content), function (i, elem) { + elem.parentNode.insertBefore(document.createComment('break'), elem); + elem.parentNode.removeChild(elem); + }); return $content.html(); },