From 8aa6427d6728ddfb7365bd51a1c136dc7f54395b Mon Sep 17 00:00:00 2001 From: Simon Huber Date: Wed, 10 Jul 2019 09:54:35 +0200 Subject: [PATCH] Update factory.js --- core/modules/editor/factory.js | 7 +++++++ 1 file changed, 7 insertions(+) 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 */