sjdemartini / mui-tiptap

A Material UI (MUI) styled WYSIWYG rich text editor, using Tiptap
MIT License
320 stars 44 forks source link

Fix allow local url to be used as a link url (#275) #286

Closed semanticist21 closed 3 weeks ago

semanticist21 commented 4 weeks ago

I just added logic for local url to be included as a url in link components.

I changed the type of the input to 'text' from 'url' and added custom pattern match.

sjdemartini commented 3 weeks ago

I ended up opening a PR with a slightly different approach for this change #288. I added support for both relative URLs like /my/path/, as well as anchor links like #my-anchor, and added the ability for users to override/change the URL formatting behavior, in case they need to customize it. I'll close this out since it's not needed anymore, but thanks again for getting this started and opening the PR!