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

feat: add support for default link protocol #5022

Merged
merged 3 commits into from
Jun 7, 2024

Conversation

henryStelle
Copy link
Contributor

@henryStelle henryStelle commented Mar 31, 2024

Please describe your changes

Added the ability to specify a default protocol for the auto link features in the Link extension.

How did you accomplish your changes

Added a configurable defaultProtocol setting (the setting defaults to the previous default so there is no breaking change) that is then passed to linkifyjs to do its magic.

How have you tested your changes

Added 4 tests to the Link mark demo testing the positive and negative cases. I also confirmed these new tests fail without the added setting.

How can we verify your changes

Open up the Link demo and type example.com. The href of the generated link should be https://example.com and the default in this demo is https. Then, type in http://example.com and confirm the href is still http://example.com.

Remarks

Checklist

  • The changes are not breaking the editor
  • Added tests where possible
  • Followed the guidelines
  • Fixed linting issues

Related issues

#5007

Copy link

netlify bot commented Mar 31, 2024

Deploy Preview for tiptap-embed ready!

Name Link
🔨 Latest commit ec4cdfb
🔍 Latest deploy log https://app.netlify.com/sites/tiptap-embed/deploys/66631905d473f900083e510a
😎 Deploy Preview https://deploy-preview-5022--tiptap-embed.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

bdbch
bdbch previously approved these changes Apr 8, 2024
@Dragonite24
Copy link

Is there any information about when the feature is planned to be released? Thank you

Copy link
Contributor

@nperez0111 nperez0111 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@nperez0111 nperez0111 merged commit ff6e00a into ueberdosis:main Jun 7, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants