Skip to content

DEVREL-2801: Copy to playground button#45

Open
tim-webflow wants to merge 2 commits intomainfrom
DEVREL-2801-copy-playground-button
Open

DEVREL-2801: Copy to playground button#45
tim-webflow wants to merge 2 commits intomainfrom
DEVREL-2801-copy-playground-button

Conversation

@tim-webflow
Copy link
Copy Markdown
Collaborator

@tim-webflow tim-webflow commented Apr 14, 2026

We have examples on the API Explorer tab and you can run them with the new Run button, but in many cases the example from the docs may not be exactly what you want to do. So this PR adds a "Copy to playground" button that copies the code to the playground tab where you can edit and run it.

Possible dangers: The Copy to playground button overwrites any code that was in there, so you may lose something. We could throw a warning or just add to the end of the existing code?

Screenshot 2026-04-14 at 8 29 39 AM

Really we need better examples in here that will run regardless of what's going on on the canvas instead of assuming the names of things. I also notice that in some cases the containing function is shown in the examples.

@tim-webflow tim-webflow self-assigned this Apr 14, 2026
@cfjedimaster
Copy link
Copy Markdown

I think it's ok to blow away existing code there. Yeah, I can see possibly getting frustrated, but no dev is doing 'real' work there.

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

Successfully merging this pull request may close these issues.

2 participants