Permalink
Browse files

http://drupal.org/node/618164#comment-4827280 re-attach wysiwyg

  • Loading branch information...
1 parent 04f4182 commit ab52a685126bd56628e9e42f95b4a57cd106c4ee @cluke009 committed Feb 21, 2012
Showing with 10 additions and 1 deletion.
  1. +10 −1 plugins/wysiwyg/ajax_wysiwyg.js
@@ -11,7 +11,7 @@
/**
* Ajax Forms plugin for wysiwyg API
- *
+ *
* @param {String} hook
* @param {Object} args
* @return {Bool}
@@ -27,5 +27,14 @@ Drupal.Ajax.plugins.wysiwyg = function(hook, args) {
}
}
}
+ if (hook === 'message') {
+ if (Drupal.wysiwyg && Drupal.wysiwygAttach) {
+ for (w in Drupal.wysiwyg.instances) {
+ p = Drupal.wysiwyg.instances[w];
+ e = $('#' + p.field);
+ Drupal.wysiwygAttach(e[0], p);
+ }
+ }
+ }
return true;
}

0 comments on commit ab52a68

Please sign in to comment.