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

Apply isUrl option to pasted links #2239 #2240

Merged
merged 6 commits into from
Feb 28, 2023

Conversation

OliverWales
Copy link
Collaborator

Links that are pasted as text are detected using the link plugin. Links pasted as HTML are not, leading to #2239.

This PR applies the isUrl option, if present, to the href of any pasted <a /> tag, and falls back to pasting as text if the href is not deemed to be a URL.

Realise this might be quite opinionated and/or a breaking change so happy to create a new "should validate pasted links" flag if preferred.

@changeset-bot
Copy link

changeset-bot bot commented Feb 27, 2023

🦋 Changeset detected

Latest commit: 20cb889

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 68 packages
Name Type
@udecode/plate-core Major
@udecode/plate-link Major
@udecode/plate-button Major
@udecode/plate-cloud Major
@udecode/plate-comments Major
@udecode/plate-find-replace Major
@udecode/plate-autoformat Major
@udecode/plate-break Major
@udecode/plate-combobox Major
@udecode/plate-node-id Major
@udecode/plate-normalizers Major
@udecode/plate-reset-node Major
@udecode/plate-select Major
@udecode/plate-tabbable Major
@udecode/plate-trailing-block Major
@udecode/plate-floating Major
@udecode/plate-headless Major
@udecode/plate-media Major
@udecode/plate-alignment Major
@udecode/plate-basic-elements Major
@udecode/plate-basic-marks Major
@udecode/plate-block-quote Major
@udecode/plate-code-block Major
@udecode/plate-emoji Major
@udecode/plate-font Major
@udecode/plate-heading Major
@udecode/plate-highlight Major
@udecode/plate-horizontal-rule Major
@udecode/plate-indent-list Major
@udecode/plate-indent Major
@udecode/plate-kbd Major
@udecode/plate-line-height Major
@udecode/plate-list Major
@udecode/plate-mention Major
@udecode/plate-paragraph Major
@udecode/plate-table Major
@udecode/plate-selection Major
@udecode/plate-serializer-csv Major
@udecode/plate-serializer-docx Major
@udecode/plate-serializer-html Major
@udecode/plate-juice Major
@udecode/plate-serializer-md Major
@udecode/plate-ui-button Major
@udecode/plate-ui-cloud Major
@udecode/plate-ui-combobox Major
@udecode/plate-ui-comments Major
@udecode/plate-ui-cursor Major
@udecode/plate-ui-dnd Major
@udecode/plate-ui-find-replace Major
@udecode/plate-ui-alignment Major
@udecode/plate-ui-block-quote Major
@udecode/plate-ui-code-block Major
@udecode/plate-ui-emoji Major
@udecode/plate-ui-excalidraw Major
@udecode/plate-ui-font Major
@udecode/plate-ui-horizontal-rule Major
@udecode/plate-ui-line-height Major
@udecode/plate-ui-link Major
@udecode/plate-ui-list Major
@udecode/plate-ui-media Major
@udecode/plate-ui-mention Major
@udecode/plate-ui-table Major
@udecode/plate-ui-placeholder Major
@udecode/plate-ui-popper Major
@udecode/plate-styled-components Major
@udecode/plate-ui-toolbar Major
@udecode/plate Major
@udecode/plate-ui Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Feb 27, 2023

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

Name Status Preview Comments Updated
plate ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 28, 2023 at 2:57PM (UTC)
plate-examples ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 28, 2023 at 2:57PM (UTC)

@ghost
Copy link

ghost commented Feb 27, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@vercel vercel bot temporarily deployed to Preview – plate-examples February 27, 2023 10:47 Inactive
@vercel vercel bot temporarily deployed to Preview – plate February 27, 2023 10:47 Inactive
@12joan
Copy link
Collaborator

12joan commented Feb 27, 2023

@OliverWales Thanks for the PR! I've emailed you about this on the address on your GitHub profile.

@vercel vercel bot temporarily deployed to Preview – plate February 27, 2023 17:07 Inactive
zbeyens
zbeyens previously approved these changes Feb 27, 2023
@vercel vercel bot temporarily deployed to Preview – plate-examples February 27, 2023 17:25 Inactive
@vercel vercel bot temporarily deployed to Preview – plate February 27, 2023 17:26 Inactive
@vercel vercel bot temporarily deployed to Preview – plate-examples February 27, 2023 22:03 Inactive
@vercel vercel bot temporarily deployed to Preview – plate February 27, 2023 22:04 Inactive
@vercel vercel bot temporarily deployed to Preview – plate February 28, 2023 09:42 Inactive
@vercel vercel bot temporarily deployed to Preview – plate-examples February 28, 2023 09:50 Inactive
@vercel vercel bot temporarily deployed to Preview – plate-examples February 28, 2023 13:24 Inactive
@vercel vercel bot temporarily deployed to Preview – plate February 28, 2023 13:28 Inactive
@vercel vercel bot temporarily deployed to Preview – plate-examples February 28, 2023 14:20 Inactive
@zbeyens zbeyens added this pull request to the merge queue Feb 28, 2023
Merged via the queue into udecode:main with commit 93dd571 Feb 28, 2023
@vercel vercel bot temporarily deployed to Preview – plate February 28, 2023 14:31 Inactive
This was referenced Feb 28, 2023
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.

3 participants