From 2bbacd5846e355ca2789ce04a54260e87a0aa388 Mon Sep 17 00:00:00 2001 From: Julian Schlarb Date: Sun, 19 Mar 2017 01:36:29 +0100 Subject: [PATCH] Check that tinymce is present --- view/adminhtml/web/js/page_designer.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/view/adminhtml/web/js/page_designer.js b/view/adminhtml/web/js/page_designer.js index 0270be9..b738962 100644 --- a/view/adminhtml/web/js/page_designer.js +++ b/view/adminhtml/web/js/page_designer.js @@ -278,6 +278,13 @@ define([ "onColumnContentSet": function (column, currentContent, callback) { // set editor as a block element to be able to access it var wysControl = jElement.parent().find('.admin__control-wysiwig').parent(); + + // ensure that tiny mce is ready + if (wysControl.find('.mceEditor').length < 1) { + tinyMCE.dom.Event.domLoaded = true; + wysControl.find('.action-show-hide').get(0).click() + } + if (wysControl.is(':hidden')) { wysControl.css({ display: 'block',