Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New images are removed when closing component #247

Open
jimafisk opened this issue Jan 3, 2023 · 0 comments
Open

New images are removed when closing component #247

jimafisk opened this issue Jan 3, 2023 · 0 comments

Comments

@jimafisk
Copy link
Member

jimafisk commented Jan 3, 2023

When uploading new images, if pane changes (e.g. switch to code view then go back to visual mode, or collapsing the current component) the image disappears. The image reappears if you expand the component where the image swap took place. This is because we're running a Svelte on:error in the visual editor and swapping out the image path (which doesn't exist on the server yet) with an encoded data image that was generated from the file uploaded from your local computer.

@jimafisk jimafisk mentioned this issue Jan 3, 2023
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant