diff --git a/core/modules/editor/engines/framed.js b/core/modules/editor/engines/framed.js index c807ffde9..7984eff4f 100644 --- a/core/modules/editor/engines/framed.js +++ b/core/modules/editor/engines/framed.js @@ -158,7 +158,9 @@ FramedEngine.prototype.focus = function() { Handle the focus event */ FramedEngine.prototype.handleFocusEvent = function(event) { - this.widget.cancelPopups(); + if(this.widget.cancelPopups) { + this.widget.cancelPopups(); + } return true; };