Commit db918ad8 authored by sun's avatar sun

#316507 by sun: Fixed TinyMCE 3 not detached properly from AJAX contents.

parent c06ba055
......@@ -6,6 +6,7 @@ Wysiwyg x.x-x.x, xxxx-xx-xx
Wysiwyg 6.x-x.x, xxxx-xx-xx
---------------------------
#316507 by sun: Fixed TinyMCE 3 not detached properly from AJAX contents.
#320559 by markus_petrux, sun: Added confirmation form to delete profiles.
......
......@@ -56,9 +56,13 @@ Drupal.wysiwyg.editor.detach.tinymce = function(context, params) {
editor.remove();
}
}
else if (tinyMCE.activeEditor) {
else {
// Save contents of all editors back into textareas.
tinyMCE.triggerSave();
tinyMCE.activeEditor.remove();
// Remove all editor instances.
for (var instanceId in tinyMCE.editors) {
tinyMCE.editors[instanceId].remove();
}
}
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment