Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear local file paths and remove link #1463

Merged
merged 3 commits into from
Dec 9, 2022
Merged

Conversation

juliaroldi
Copy link
Contributor

Only non local files must be pasted, then when paste, sanitize the link to remove local paths.

['href'].forEach(property => {
chainSanitizerCallback(
sanitizingOption.attributeCallbacks,
property,
Copy link
Contributor

@BryanValverdeU BryanValverdeU Dec 9, 2022

Choose a reason for hiding this comment

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

nit: I think we can just add 'href' property here since we are only sanitizing a single property

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh my god! I copied a code I did in the past and didn't noticed that. Thanks.

@juliaroldi juliaroldi force-pushed the u/juliaroldi/sanitizeLinks branch from f29dd84 to 0337621 Compare December 9, 2022 20:56
@juliaroldi juliaroldi merged commit 3add441 into master Dec 9, 2022
@juliaroldi juliaroldi deleted the u/juliaroldi/sanitizeLinks branch December 9, 2022 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants