-
Notifications
You must be signed in to change notification settings - Fork 451
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
fix(core): flag application/x-portable-text
as portable text
#8721
base: next
Are you sure you want to change the base?
Conversation
This makes it possible to drag inline objects in the editor without getting a "Can't upload any of these files here" error. --- Drag and drop in PTE is still very lackluster: 1. Block objects like images can be dragged around, but this is purely implemented by maintaining an internal drag state, and dragging these objects doesn't use the `application/x-portable-text` MIME type yet. 2. Inline objects can be dragged more freely. They are stored using `application/x-portable-text` and even support being dragged from one editor to another. `application/x-portable-text` is what PTE uses when serializing and deserializing to and from the clipboard. And it's also the MIME type used for drag and drop going forward. And soon block objects will be stored on this MIME type as well.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Updated dependencies detected. Learn more about Socket for GitHub ↗︎
|
No changes to documentation |
Coverage Report
File Coverage
|
⚡️ Editor Performance ReportUpdated Fri, 21 Feb 2025 18:45:10 GMT
Detailed information🏠 Reference resultThe performance result of
🧪 Experiment resultThe performance result of this branch
📚 Glossary
|
Component Testing Report Updated Feb 21, 2025 6:50 PM (UTC) ❌ Failed Tests (4) -- expand for details
|
Description
This makes it possible to drag inline objects in the editor without getting a
"Can't upload any of these files here" error.
Drag and drop in PTE is still very lackluster:
implemented by maintaining an internal drag state, and dragging these
objects doesn't use the
application/x-portable-text
MIME type yet.application/x-portable-text
and even support being dragged from one editorto another.
application/x-portable-text
is what PTE uses when serializing anddeserializing to and from the clipboard. And it's also the MIME type used for
drag and drop going forward. And soon block objects will be stored on this MIME
type as well.
What to review
Verify that you can now drag inline objects around in the editor.
Testing
n/a
Notes for release
It's now possible to drag and drop inline objects in the Portable Text Input.