We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6302d29 + e804b7c commit 0995790Copy full SHA for 0995790
app/bundles/CoreBundle/Assets/js/1a.content.js
@@ -818,9 +818,11 @@ Mautic.onPageUnload = function (container, response) {
818
819
if (ckEditors.size > 0) {
820
ckEditors.forEach(function(value, key, map){
821
- map.get(key).destroy()
822
- })
823
- ckEditors.clear();
+ if (container === '#app-content' || container === 'body' || mQuery(container).find(key).length > 0 || mQuery(key).closest(container).length > 0) {
+ map.get(key).destroy();
+ map.delete(key);
824
+ }
825
+ });
826
}
827
828
mQuery(container + " input[data-toggle='color']").each(function() {
0 commit comments