The media view has been created to make it easier to look at all media files available for your articles. When you click on an image, it will show a lightbox, so that it is easier to glance at small images.
By default, the media dashboard supports audio, image, and video files to be displayed and uploaded (drag&drop).
If you want that the media dashboard supports additional file types, you can define these in the
On the image card, there are actions like setting metadata, copying the relative path, and deleting the media file.
Setting metadata got introduced so that you can set the description and alt tag of your images. This functionality makes it easier to insert your images to your content.
Info: Check the Insert images section for more information.
Important: Data is stored in a local JSON file which you can find under:
<project>/.frontmatter/content/mediaDb.json. Please do not remove this file, or you will lose your metadata.
Deleting a media file
Custom media actions
5.6.0 of the extension, you can now define your own media actions. This extensibility
option is very useful for adding your own optimizations, functionality, or anything else you want.
For instance, you can use it to optimize the image(s) size.
Custom actions for media files can be defined on two levels:
- File level: Single file action
- Folder level: Multiple files action
Info: Check out creating media scripts for more information.
Drag and Drop
On the media view, we enabled drag and drop for your media files. You can easily drop any image from your explorer/finder window into one of your folders.
Did you spot an issue in our documentation, or want to contribute? Edit this page on Github!