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

Hotwire support #45

Open
hecksadecimal opened this issue Mar 10, 2025 · 4 comments
Open

Hotwire support #45

hecksadecimal opened this issue Mar 10, 2025 · 4 comments

Comments

@hecksadecimal
Copy link

hecksadecimal commented Mar 10, 2025

I'm making a chat app, and I make use of turbo frames to handle in-place editing of messages.
Marksmith doesn't appear to be compatible with this approach out of the box, and I haven't seen any instructions on how to handle this particular usecase.

When I load a form with a marksmith field through a turbo broadcast, it fails to preview.

Image Image Image
@adrianthedev
Copy link
Contributor

hey @hecksadecimal can you please set up a tiny minimal reproduction repository where I can test it out and see exactly what happens?
I'd love to help support that

@hecksadecimal
Copy link
Author

Certainly, I'll reply back soon with a repo you can clone.

@hecksadecimal
Copy link
Author

hey @hecksadecimal can you please set up a tiny minimal reproduction repository where I can test it out and see exactly what happens? I'd love to help support that

This repo contains a minimal implementation of turbo broadcasts and showcases some odd behaviour from marksmith.
Notably when there is already a marksmith form on the page and it's been used to preview, interference happens between other marksmith forms created by hitting 'edit' on a post.

https://github.com/hecksadecimal/marksmith-hotwire-minimal

@adrianthedev
Copy link
Contributor

Awesome! Thanks @hecksadecimal.
I'll have a look as soon as I get some time.
That should be supported AFAIK.

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

2 participants