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

未关闭
#8,745 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@hiobjan 已经在做这个了。

开始于 2026年7月27日。

  • #8916 来自 @hiobjan —— 已关闭,未合并

评估

这个 Issue 还没有评估数据。

描述

enhancement
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
主要语言
JavaScript
星标
665
派生
133
平均合并
1 天 17 小时
30 天内合并 PR
172

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nextcloud/text 的其他 Issue

查看 nextcloud/text 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。