From d65610429cea53598daf72abe44090e9b12bede9 Mon Sep 17 00:00:00 2001 From: azivner Date: Sat, 6 Oct 2018 22:00:43 +0200 Subject: [PATCH] don't show tooltip over ckeditor link editing dialog --- src/public/javascripts/services/tooltip.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/public/javascripts/services/tooltip.js b/src/public/javascripts/services/tooltip.js index 7a00981fa..f8e01119c 100644 --- a/src/public/javascripts/services/tooltip.js +++ b/src/public/javascripts/services/tooltip.js @@ -13,7 +13,12 @@ function setupTooltip() { return; } - let notePath = linkService.getNotePathFromLink($link.attr("href")); + // this is to avoid showing tooltip from inside CKEditor link editor dialog + if ($link.closest(".ck-link-actions").length) { + return; + } + + let notePath = linkService.getNotePathFromUrl($link.attr("href")); if (!notePath) { notePath = $link.attr("data-note-path");