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]


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.


	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


Additional information

Taking as an example pdf:

Screen Recording 2023-12-25 at 0.54.02


1 Like

will be fixed 1.5.4