Skip to content

Custom <a> links are not clickable in the editor #1923

@ClementEXWiki

Description

@ClementEXWiki

Describe the bug
Creating a custom inline content that renders to an <a> element, the link is visible and styled, but not clickable. Clicking on it simply places the cursor inside the link, and nothing else.

To Reproduce

  1. Create a custom inline content spec rendering to a simple <a href="...">...</a> element
  2. Insert it into the editor
  3. Click on the link in the editor

Note that adding target="_blank" doesn't solve the issue. Mimicking BlockNote's own link HTML structure doesn't work either, which leads me to think the editor adds an click listener to these ilnks.

Misc

  • Node version:
  • Package manager: PNPM 10.14.0
  • Browser: Firefox 141.0.2 (Flatpak)
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions