summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsun2009-01-18 22:04:13 (GMT)
committer sun2009-01-18 22:04:13 (GMT)
commit37c7b8eb2caab39def7c6121eeb5e558cb266e33 (patch)
tree8399a2ede9034b63fcd66057e6311224e83d4d02
parent46b43486927ff6de2456eb8ee21e64fbf56f4328 (diff)
#360696 by sun: Fixed IE does not trigger onChange event when selecting an input format.
-rw-r--r--CHANGELOG.txt2
-rw-r--r--wysiwyg.js6
2 files changed, 8 insertions, 0 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 12507c6..b301e20 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -6,6 +6,8 @@ Wysiwyg x.x-x.x, xxxx-xx-xx
Wysiwyg 6.x-x.x, xxxx-xx-xx
---------------------------
+#360696 by sun: Fixed IE does not trigger onChange event when selecting an input
+ format.
#342376 by sun: Extended API to allow "preprocess" JavaScript option for some
editors.
#352295 by sun: Added markItUp editor support.
diff --git a/wysiwyg.js b/wysiwyg.js
index a29e9ac..fe93725 100644
--- a/wysiwyg.js
+++ b/wysiwyg.js
@@ -48,6 +48,12 @@ Drupal.behaviors.attachWysiwyg = function(context) {
Drupal.wysiwygDetach(context, params);
Drupal.wysiwygAttach(context, params);
});
+ // IE triggers onChange after blur only.
+ if ($.browser.msie) {
+ $this.click(function () {
+ this.blur();
+ });
+ }
}
$this.addClass('wysiwyg-processed');
});