Live preview editor cannot properly do "copy all" when it contains PDF embeds

Steps to reproduce

(I only tested on macOS)

  1. Open a sandbox vault and add a pdf file to it.
  2. Create a new note and enter live preview mode.
  3. In the editor, embed the pdf in the note: ![[file.pdf]]
  4. Press Cmd+A and then Cmd+C to “copy all”.
  5. Press Cmd+V to paste the copied content to the editor.

Did you follow the troubleshooting guide? [Y/N]

Y

Expected result

The copied content should be just ![[file.pdf]].

Actual result

The text content of the embedded pdf file is copied to the clipboard.

Environment

SYSTEM INFO:
	Obsidian version: v1.4.16
	Installer version: v1.4.13
	Operating system: Darwin Kernel Version 22.6.0: Wed Jul  5 22:22:52 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T8103 22.6.0
	Login status: logged in
	Catalyst license: none
	Insider build toggle: off
	Live preview: on
	Legacy editor: off
	Base theme: dark
	Community theme: none
	Snippets enabled: 0
	Restricted mode: off
	Plugins installed: 0
	Plugins enabled: 0

RECOMMENDATIONS:
	none

Additional information

Taking https://papers.nips.cc/paper_files/paper/2019/file/f8c0c968632845cd133308b1a494967f-Paper.pdf as an example pdf:

Screen Recording 2023-12-25 at 0.54.02

thanks

1 Like

will be fixed 1.5.4