summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.txt1
-rw-r--r--plugins/break/break.js3
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index edede29..e5de69a 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -6,6 +6,7 @@ Wysiwyg x.x-x.x, xxxx-xx-xx
Wysiwyg 6.x-2.x, xxxx-xx-xx
---------------------------
+#404532 by TwoD: Fixed Teaser break comment stripped in IE.
#380698 by TwoD: Added Drupal plugin support for FCKeditor.
#380698 by TwoD, sun: Added Drupal plugin support for FCKeditor (part I).
#398848 by sun: Added support for TinyMCE 3.1.
diff --git a/plugins/break/break.js b/plugins/break/break.js
index c7687c5..eec04ce 100644
--- a/plugins/break/break.js
+++ b/plugins/break/break.js
@@ -47,7 +47,8 @@ Drupal.wysiwyg.plugins['break'] = {
*/
detach: function(content, settings, instanceId) {
var $content = $('<div>' + content + '</div>'); // No .outerHTML() in jQuery :(
- $('img.wysiwyg-break', $content).replaceWith('<!--break-->');
+ // document.createComment() required or IE will strip the comment.
+ $('img.wysiwyg-break', $content).replaceWith(document.createComment('break'));
return $content.html();
},