diff --git a/view/adminhtml/web/js/page_designer.js b/view/adminhtml/web/js/page_designer.js index 3e21399..61971cf 100644 --- a/view/adminhtml/web/js/page_designer.js +++ b/view/adminhtml/web/js/page_designer.js @@ -261,6 +261,13 @@ define([ * @param {Function} callback */ "onColumnContentSet": function (column, currentContent, callback) { + // remove old editors + $.each(tinyMCE.editors, function (i, editor) { + if (editor && !document.getElementById(editor.id)) { + editor.remove(); + } + }); + // set editor as a block element to be able to access it var wysControl = jElement.parent().find('.admin__control-wysiwig').parent(); if (wysControl.is(':hidden')) {