Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for autolink (tiptap v2) #2097

Closed
ya-d opened this issue Jan 14, 2022 · 2 comments · Fixed by #2316
Closed

Add support for autolink (tiptap v2) #2097

ya-d opened this issue Jan 14, 2022 · 2 comments · Fixed by #2316
Assignees
Labels
3. to review enhancement New feature or request
Milestone

Comments

@ya-d
Copy link

ya-d commented Jan 14, 2022

Tiptap v2 adds support for autolink and creates hyperlinks automatically when URLs are inserted by typing oder pasting.

It would be nice if Text would support that as well. Thanks for considering!

Related to #1906 #1981

@mejo-
Copy link
Member

mejo- commented Apr 17, 2022

Interesting, this should be enabled per default with tiptap v2 (see https://tiptap.dev/api/marks/link#autolink), but for some reason it doesn't work in latest Text 🤔

Seems like our custom addProseMirrorPlugins() in https://github.com/nextcloud/text/blob/master/src/marks/Link.js#L55 overwrites the default plugins autolink, onOpenClick and linkOnPaste. For linkOnPaste, this probably even is a regression in Nextcloud 24.

@vinicius73
Copy link
Member

Yes @mejo- , we must fix it.
I will work on it.

@vinicius73 vinicius73 self-assigned this Apr 19, 2022
vinicius73 pushed a commit that referenced this issue Apr 19, 2022
auto link is included in original tiptap extension-link.

We should keep the original behavior as much as possible.

Signed-off-by: Vinicius Reis <[email protected]>
vinicius73 pushed a commit that referenced this issue Apr 19, 2022
vinicius73 pushed a commit that referenced this issue Apr 20, 2022
Signed-off-by: Vinicius Reis <[email protected]>
vinicius73 pushed a commit that referenced this issue Apr 20, 2022
vinicius73 pushed a commit that referenced this issue Apr 20, 2022
manually applied from #2316 and #2318

Signed-off-by: Vinicius Reis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants