Skip to content

Commit

Permalink
Check that tinymce is present
Browse files Browse the repository at this point in the history
  • Loading branch information
JSchlarb committed Mar 19, 2017
1 parent 70116f2 commit 2bbacd5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions view/adminhtml/web/js/page_designer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 2bbacd5

Please sign in to comment.