Skip to content

Sanitize floatingLinkEditor - #4462

Merged
acywatson merged 1 commit into
mainfrom
md-url
May 8, 2023
Merged

acywatson merged 1 commit into
mainfrom
md-url

Conversation

@acywatson

@acywatson acywatson commented May 5, 2023 •

Copy link
Copy Markdown
Contributor

Previously you could cause an anchor to be rendered with javascript: url in this editor via.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 5, 2023
@vercel

vercel Bot commented May 5, 2023 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 5, 2023 10:56pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 5, 2023 10:56pm

@github-actions

github-actions Bot commented May 5, 2023

Copy link
Copy Markdown

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
packages/lexical/dist/Lexical.js 27.01 KB (0%) 541 ms (0%) 229 ms (-27.32% 🔽) 769 ms
packages/lexical-rich-text/dist/LexicalRichText.js 37.86 KB (0%) 758 ms (0%) 442 ms (-27.77% 🔽) 1.2 s
packages/lexical-plain-text/dist/LexicalPlainText.js 37.83 KB (0%) 757 ms (0%) 433 ms (+6.55% 🔺) 1.2 s

@zurfyx zurfyx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to export this function from @lexical/link since we have the same logic there?

@acywatson

acywatson commented May 7, 2023 •

Copy link
Copy Markdown
Contributor Author

Does it make sense to export this function from @lexical/link since we have the same logic there?

I just wasn't sure I really wanted a url sanitizer to be part of Lexical's public API. What do you think?

@acywatson
acywatson merged commit 353f557 into main May 8, 2023
@acywatson
acywatson deleted the md-url branch May 8, 2023 19:04
This was referenced May 23, 2023

This branch was successfully deployed

2 active deployments
Preview – lexical-playground — 20141659 Deployed May 5, 2023 by vercel[bot]
Preview – lexical — 20141659 Deployed May 5, 2023 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants