diff --git a/www/pad/links.js b/www/pad/links.js index 2904c480d..647c2f5b0 100644 --- a/www/pad/links.js +++ b/www/pad/links.js @@ -5,7 +5,7 @@ define([ '/customize/messages.js' ], function ($, h, UIElements, Messages) { - var onLinkClicked = function (e, inner, openLinkSetting) { + var onLinkClicked = function (e, inner, openLinkSetting, editor) { var $target = $(e.target); if (!$target.is('a')) { $target = $target.closest('a'); @@ -85,7 +85,7 @@ define([ $inner.click(function (e) { removeClickedLink($inner); if (e.target.nodeName.toUpperCase() === 'A' || $(e.target).closest('a').length) { - return void onLinkClicked(e, inner, openLinkSetting); + return void onLinkClicked(e, inner, openLinkSetting, editor); } });