Milkdown / milkdown

🍼 Plugin driven WYSIWYG markdown editor framework.
https://milkdown.dev
MIT License
8.82k stars 389 forks source link

[Bug] Links on React version don't allow you to click #1363

Closed alexjackhughes closed 3 months ago

alexjackhughes commented 3 months ago

Initial checklist

Affected packages and versions

7.3.3

Link to runnable example

No response

Steps to reproduce

  1. Go here
  2. Add a link to the markdown
  3. Try to click the link (you can click through if you right-click)

Expected behavior

I'd expect to be able to click the link and for it to open either in that tab or a new tab

Actual behavior

You click the link and nothing happens.


Apologies if this isn't an issue, and I'm missing some plugin; I did check and I couldn't find anything. Also, I'd be happy to help fix this issue if this isn't expected behaviour if you can just point me in the right direction of what's going on.

Runtime

Chrome

OS

macOS

Build and bundle tools

Vite

Saul-Mirone commented 3 months ago

I think prosemirror disabled the click and open link behavior. Please refer to https://discuss.prosemirror.net/t/clickable-links/3628. But there do have some methods to bypass the behavior. You may also want to use link tooltip component to handle links in milkdown.