jpuri / react-draft-wysiwyg

A Wysiwyg editor build on top of ReactJS and DraftJS. https://jpuri.github.io/react-draft-wysiwyg
MIT License
6.38k stars 1.15k forks source link

Add ability to validate Link and Embedded url #1378

Open maxpeterson opened 1 year ago

maxpeterson commented 1 year ago

Thanks for providing a great library @jpuri

I needed the ability to validate the links so I have created this PR to add config options to validate the urls input for Link and Embedded

This is partly based on #355, however it does not provide "allowRelative" link functionality nor prepends links with 'https://'. Both should be possible with a combination of the new linkValidator and the existing linkCallback

Possibly related to #483