? wysiwyg-ctools-detach.patch Index: wysiwyg.js =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/wysiwyg/wysiwyg.js,v retrieving revision 1.15.2.3 diff -u -p -r1.15.2.3 wysiwyg.js --- wysiwyg.js 25 Sep 2010 00:47:20 -0000 1.15.2.3 +++ wysiwyg.js 20 Oct 2010 19:25:57 -0000 @@ -216,4 +216,13 @@ Drupal.wysiwyg.getParams = function(elem */ Drupal.wysiwygInit(); +// Respond to CTools detach behaviors event. +$(document).bind('CToolsDetachBehaviors', function(context) { + for (var i in Drupal.wysiwyg.instances) { + // Do we have to test to see if the instance is actually within the context? + Drupal.wysiwygDetach(context, Drupal.wysiwyg.instances[i]); + } +}); + + })(jQuery);