Skip to content

Disabling link extension no longer works #2282

@skjalghodneland

Description

@skjalghodneland

Describe the bug
In the latest version (0.44.2) of BlockNote you cannot use disableExtensions: ['link'], in useCreateBlockNote in order to disable the built in link functionality. In version 0.41.1 this worked, which allowed me to create my own link implementation with features that are missing from the base implementation.

How would I go about disabling the link in the latest version?

To Reproduce

  • Create some content that has links and add to editor
  • Add 'link' to disableExtensions. Observe that it has no effect.
  • Downgrade version to 0.41.1, now the links should be parsed as plain text.

Example
Go to Stackblitz example. Observe that link is added to disabledExtensions, yet the links are still displayed as links with link toolbars etc. Downgrade the version to 0.41.1 and observe that the links are no longer parsed as links, since disableExtensions now works.

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