diff --git a/core/modules/editor/factory.js b/core/modules/editor/factory.js index 0e44bd459..c2e56f150 100644 --- a/core/modules/editor/factory.js +++ b/core/modules/editor/factory.js @@ -248,6 +248,13 @@ function editTextWidgetFactory(toolbarEngine,nonToolbarEngine) { } }; + /* + Cancel Popups + */ + EditTextWidget.prototype.cancelPopups = function() { + $tw.popup.cancel(0,this.engine.domNode); + }; + /* Handle a dom "keydown" event, which we'll bubble up to our container for the keyboard widgets benefit */