From 251a7136591713f5e4b25ee0ca0e2f589f9973d2 Mon Sep 17 00:00:00 2001 From: Jonas Date: Sun, 24 Dec 2023 00:32:44 +0100 Subject: [PATCH] tmp: don't run onClick callback when link is clicked This is temporary to test the new link bubble feature. A proper refactoring of the link handling callback functions will follow later. --- src/plugins/link.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/link.js b/src/plugins/link.js index 43e7d32ecd6..f951b365875 100644 --- a/src/plugins/link.js +++ b/src/plugins/link.js @@ -20,6 +20,7 @@ const clickHandler = ({ editor, type, onClick }) => { // We use custom onClick handler only for left clicks if (event.button === 0 && !event.ctrlKey) { event.stopPropagation() + return return onClick?.(event, link.attrs) } },