Skip to content

Link Extension enableClickSelection:true not selecting whole link on click #7233

@saasjesus

Description

@saasjesus

Affected Packages

extension-link

Version(s)

3.2.4

Bug Description

Hi there. So I am using the Link Extension in v3 and was using the enableClickSelection:true however when I click the Link it doesnt select the whole.

This is my Extension:

{
...
extensions: [...,  Link.extend({
        inclusive: false,
      }).configure({
        enableClickSelection: true,
        linkOnPaste: true,
        defaultProtocol: 'https',
        openOnClick: false,
        HTMLAttributes: {
          class: 'text-primary cursor-pointer',
        },
      })]
}

All the other options work great, but that doesnt at all

See Loom: https://www.loom.com/share/1c1259b5bdff40d886e1f7c0c1d1f97c

Am I doing something wrong?

Browser Used

Chrome

Code Example URL

No response

Expected Behavior

It should select the whole link directly when I click on a link in the Editor

Additional Context (Optional)

No response

Dependency Updates

  • Yes, I've updated all my dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Open SourceThe issue or pull reuqest is related to the open source packages of Tiptap.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions