Support pasting images directly into Markdown/MDX files #776

Closed
opened 2026-10-05 03:04:53 +02:00 by adam · 3 comments
Owner

Is your feature request related to a problem? Please describe.
When writing Markdown (.md) or MDX (.mdx) content in Frontmatter CMS, adding images requires a manual workflow (save image file separately, then insert/link it in the document). This interrupts writing flow and makes quick content creation less efficient.

Describe the solution you'd like
Add support for directly pasting images into .md and .mdx files from the clipboard.

It would be great to support two behaviors:

  1. Automatically save pasted images to a configured default folder.
  2. Prompt for the save location each time an image is pasted.

This could be implemented as a setting so users can choose their preferred behavior.

Describe alternatives you've considered
Current workaround is to manually save images and then reference them in the document, which is slower and less convenient.

Additional context
This would significantly improve the authoring experience and speed up content workflows in Frontmatter CMS.

**Is your feature request related to a problem? Please describe.** When writing Markdown (`.md`) or MDX (`.mdx`) content in Frontmatter CMS, adding images requires a manual workflow (save image file separately, then insert/link it in the document). This interrupts writing flow and makes quick content creation less efficient. **Describe the solution you'd like** Add support for directly pasting images into `.md` and `.mdx` files from the clipboard. It would be great to support two behaviors: 1. Automatically save pasted images to a configured default folder. 2. Prompt for the save location each time an image is pasted. This could be implemented as a setting so users can choose their preferred behavior. **Describe alternatives you've considered** Current workaround is to manually save images and then reference them in the document, which is slower and less convenient. **Additional context** This would significantly improve the authoring experience and speed up content workflows in Frontmatter CMS. <!-- github-sync-id:5007693918 -->
adam closed this issue 2026-10-05 03:04:53 +02:00
Author
Owner

@Juniors017 in the BETA version, you can give it a try, there is a new setting:

frontMatter.media.pasteBehavior - its values are: dashboard, auto, disabled. The default is dashboard.

dashboard

When you paste an image, it will then open the media dashboard to allow you to select the folder where you want to store the file. Add the metadata, and insert it via the default import or snippet.

auto

Saves the image to the page bundle or public folder and inserts it straight away.

@Juniors017 in the BETA version, you can give it a try, there is a new setting: `frontMatter.media.pasteBehavior` - its values are: `dashboard`, `auto`, `disabled`. The default is `dashboard`. ## dashboard When you paste an image, it will then open the media dashboard to allow you to select the folder where you want to store the file. Add the metadata, and insert it via the default import or snippet. ## auto Saves the image to the page bundle or public folder and inserts it straight away. <!-- github-comment-id:5168770582 -->
Author
Owner

Merci beaucoup d'avoir mis en œuvre ce changement. Je ne pourrai le tester qu'à mon retour de vacances, car je suis toujours dans le nord de l'Écosse et je n'ai pas accès à un ordinateur.
Docux

Merci beaucoup d'avoir mis en œuvre ce changement. Je ne pourrai le tester qu'à mon retour de vacances, car je suis toujours dans le nord de l'Écosse et je n'ai pas accès à un ordinateur. Docux <!-- github-comment-id:5233952622 -->
Author
Owner

Released in version 10.12.0.

Released in version 10.12.0. <!-- github-comment-id:5371144022 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/vscode-front-matter#776