Skip to content

Image suggester losing track of selected image when restarting obsidian or opening it as text #582

Closed
@Alecell

Description

@Alecell

Please fill out these Check-boxes

  • I checked for existing similar issues
  • I checked that the plugin is up to date
  • The issue persists with all other plugins and themes disabled

Plugin Version

1.4.1

This Issue Occurs on

  • Windows
  • Linux
  • macOS
  • Android
  • iOS

Debug Info

SYSTEM INFO:
	Obsidian version: v1.8.10
	Installer version: v1.8.4
	Operating system: Windows 11 Home 10.0.26100
	Login status: logged in
	Language: en
	Catalyst license: none
	Insider build toggle: off
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: off
	Plugins installed: 1
	Plugins enabled: 1
		1: Meta Bind v1.4.1

RECOMMENDATIONS:
	Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

Describe the Issue

After select a image with image suggester the selected image seems like to be loaded on memory or something like that, so after close Obsidian or open the input field as plain text the image vanish.

Steps to Reproduce

  1. Create a simple imageSuggester input INPUT[imageSuggester(optionQuery(""))]
  2. Click on the element to add a image and select any image
  3. The image will be added on the page
  4. Restart obsidian
  5. The Note will not have any image selected displaying "No image selected".

Its also reproductible in another way, following the step 2

  1. With your cursos go to the place where the imageSuggester is
  2. It will disply as plain text code for Meta Bind
  3. Leave the cursor, it will again display as a "No image selected".

Expected Behavior

The image should be there even thought we close the app or if we open it as plain text. Maybe it should add the path for the selected image on the input after a selection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behavior caused by this plugin

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions