hyperlinkPlugin. onClickCallback don't work

Hi everyone i use ‘hyperlinkPlugin’ from ‘@atlaskit/editor-plugins/hyperlink’ inside ‘usePreset’ from ‘@atlaskit/editor-core/use-preset’.

By default, when you click on a link, the page opens inside an iframe, but I need it to open in a new tab. That’s why I decided to add onClickCallback, which for some reason doesn’t work (even the console log doesn’t work). I would appreciate any help.

            .add([hyperlinkPlugin,
                {
                    onClickCallback: ({event, url}) => {
                        console.log('test1')
                        event.preventDefault();
                        if (url) {
                            console.log('test2')
                            router.open(url);
                        }
                    },
                }])

Thanks for any help