nextcloud / nextcloud/text

Paste PDF files with preview by default + add option to toggle mode

Open
#8,745 0 comments 0 reactions 1 assignee View on GitHub

@hiobjan is already working on this.

Since Jul 27, 2026.

enhancement
Dominant language
JavaScript
Stars
659
Forks
133
Avg merge
1d 20h
Merged PRs (30d)
110

Description

Problem / Usecase

When adding PDF's to a text via drag and drop, no preview window is generated. It also isn't possible to optionally enable the preview. There isn't even a "three-dot-menu" when the PDF is embedded just as a file.

When adding a PDF via the smartpicker, the PDF is embedded into the text with a preview window.

This is not satisfactory, because adding files via drag and drop is a very common usecase, I think.

Suggested solutions
  • Make embedding with preview the default, for either of the two methods of pasting a PDF
  • Make it optional as a point in the "preview options" in the three-dot-menu
  • Show the menu for embedded plain files aswell
Further ideas
  • Maybe it could be nice to have a context menu appear when inserting a file by drag and drop, that shows two clickable options: Generate preview window / paste as a simple file
Examples
Inserted by drag and drop
Image
Inserted with smartpicker

Image #/

Three-dot-menu
Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.