Skip to content

Commit

Permalink
Merge pull request #3 from JSchlarb/master
Browse files Browse the repository at this point in the history
Check that tinymce is present
  • Loading branch information
sydekumf authored Mar 19, 2017
2 parents 70116f2 + 2bbacd5 commit 9275299
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 9275299

Please sign in to comment.