mdx-editor / editor

A rich text editor React component for markdown
https://mdxeditor.dev
MIT License
1.88k stars 143 forks source link

validateUrl in linkPlugin - what is expected behavior? [BUG] #457

Closed jjenkins120 closed 4 months ago

jjenkins120 commented 4 months ago

Describe the bug When adding the validateUrl param to the linkPlugin function, no change in validation seems to occur.

Expected behavior For some form of validation to take place. Not entirely sure what to expect. It appears that the param is not working.

Desktop (please complete the following information):

petyosi commented 4 months ago

https://github.com/mdx-editor/lexical/blob/main/packages/lexical-react/src/LexicalLinkPlugin.ts - see how it's implemented here.