You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Markdown files (*.md), VS Code allows for creating a Markdown video:
Inserting.a.video.using.drag.and.drop.mp4
It would be amazing if creating Markdown videos with drag and drop was also supported in an MDX file.
Currently, it inserts the path.
Solution
Apparently in VS Code 1.78 (April 2023) - or maybe earlier - there is an option for extensions to contribute their own options to this list:
VS Code includes a few built-in ways to drop common content formats. Extensions can also add their own drop options using the DocumentDropEditProvider API.
Initial checklist
Problem
Quickly authoring MDX documents by dragging and dropping videos is a nice DX
There is a drag and drop feature introduced in VS Code 1.70 (thanks @mjbvz) that allowed for handling dropped files (either from the VS Code explorer, editor tabs, the OS, or other applications) (extension sample) - activate this feature by holding shift while dragging a file.
With Markdown files (
*.md
), VS Code allows for creating a Markdown video:Inserting.a.video.using.drag.and.drop.mp4
It would be amazing if creating Markdown videos with drag and drop was also supported in an MDX file.
Currently, it inserts the path.
Solution
Apparently in VS Code 1.78 (April 2023) - or maybe earlier - there is an option for extensions to contribute their own options to this list:
Source: https://code.visualstudio.com/updates/v1_78#_drop-selector
Maybe this would be the way to contribute this action of "Insert Markdown Video"
I would suggest a simple implementation:
video
element without extrasource
elementsRelated
Drag and drop for images has been implemented in PR #346 and #357, as a response to #322
Alternatives
Installing the Drag And Drop Import Relative Path extension by @ElecTreeFrying
The text was updated successfully, but these errors were encountered: