The default behavior of the LinkBubbleMenu editing is to do the following to the user-entered URL when they finish typing:
trim leading/trailing whitespace (unchanged)
ensure the value has a protocol (http://) if it doesn't already and isn't a relative (starting with "/") or anchor (starting with "#") URL (change in behavior)
Change: We now accept relative URLs starting with "/" and anchor links starting with "#" (resolves #275)
Change: We now also accept sms: as a valid protocol, like we did for mailto: and tel: before
URL-encode the result (unchanged)
The input field is now of type text instead of url to support relative URLs. So it will be less strict in enforcing URL formatting.
LinkBubbleMenu now has a formatHref prop which can be used to override the above link-formatting behavior and provide custom functionality (resolves #182)
Resolves: https://github.com/sjdemartini/mui-tiptap/issues/182 and https://github.com/sjdemartini/mui-tiptap/issues/275
Changes:
sms:
as a valid protocol, like we did formailto:
andtel:
beforetext
instead ofurl
to support relative URLs. So it will be less strict in enforcing URL formatting.LinkBubbleMenu
now has aformatHref
prop which can be used to override the above link-formatting behavior and provide custom functionality (resolves #182)