From ab1447d68b39c253ef7bf3c969ebba413470fbb7 Mon Sep 17 00:00:00 2001 From: Jonas Date: Tue, 9 Jan 2024 14:09:31 +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 02d6d5c89d7..3bed5c29430 100644 --- a/src/plugins/link.js +++ b/src/plugins/link.js @@ -27,6 +27,7 @@ const clickHandler = ({ editor, type, onClick }) => { } event.stopPropagation() + return return onClick?.(event, link.attrs) }, },