Skip to content

feat(tiptap): upload images pasted or dropped into the editor body - #514

Open
justin0u0 wants to merge 1 commit into
nuxt-content:mainfrom
justin0u0:feat/editor-image-paste-drop
Open

feat(tiptap): upload images pasted or dropped into the editor body#514
justin0u0 wants to merge 1 commit into
nuxt-content:mainfrom
justin0u0:feat/editor-image-paste-drop

Conversation

@justin0u0

Copy link
Copy Markdown
Contributor

Wire the rich editor's paste and drop events to Studio's existing media draft pipeline. Image files pasted from the clipboard or dropped onto the editor body now upload into public/ with a UUID filename (via useDraftMedias.upload) and insert an image node pointing at the uploaded path.

Previously paste did nothing and dropping a file made the browser navigate to it.

  • Copy-paste

    Screen.Recording.2026-06-22.at.17.54.14.mov
  • Drag to upload

    Screen.Recording.2026-06-22.at.17.55.09.mov

Wire the rich editor's paste and drop events to Studio's existing media
draft pipeline. Image files pasted from the clipboard or dropped onto the
editor body now upload into public/ with a UUID filename (via
useDraftMedias.upload) and insert an image node pointing at the uploaded
path.

Previously paste did nothing and dropping a file made the browser navigate
to it.

Signed-off-by: Justin Chen <mail@justin0u0.com>
@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

@justin0u0 is attempting to deploy a commit to the Nuxt Team on Vercel.

A member of the Team first needs to authorize it.

@pkg-pr-new

pkg-pr-new Bot commented Jun 29, 2026

Copy link
Copy Markdown
npm i https://pkg.pr.new/nuxt-studio@514

commit: 89b20fa

@justin0u0

Copy link
Copy Markdown
Contributor Author

Hi @hendrikheil, is there anything I can do to help get this PR reviewed?

It's a small feature, but it should greatly improve the user experience.

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.

1 participant