-
Notifications
You must be signed in to change notification settings - Fork 4
Added Link mark supporting email, anchors and custom attributes #32
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: Copilot <[email protected]>
….php in line with other files
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #32 +/- ##
============================================
+ Coverage 62.83% 67.64% +4.81%
- Complexity 18 28 +10
============================================
Files 5 6 +1
Lines 113 136 +23
============================================
+ Hits 71 92 +21
- Misses 42 44 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
src/Mark/Link.php
Outdated
| { | ||
| return [ | ||
| 'HTMLAttributes' => [ | ||
| 'target' => '_blank', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure this should be the default, why do you think it should?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@edodusi I agree, this was taken from the base Link class in TipTap, I wanted to minimise what changes my replacement makes but as Storyblok includes a target in the JSON we don’t need this. I’ll update the PR.
The standard TipTap Link mark didn’t support all the features of Storyblok’s links. This new Link mark implements email links, anchors and custom attributes