From d1eda86af0c0f70e50b99b2414601db830bf7605 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) }, },