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

Playground: Add flag for embedding playground via iframe #93

Open
3 tasks
Lotes opened this issue Nov 8, 2022 · 0 comments
Open
3 tasks

Playground: Add flag for embedding playground via iframe #93

Lotes opened this issue Nov 8, 2022 · 0 comments
Labels
playground Issues related to the playground functionalits

Comments

@Lotes
Copy link
Contributor

Lotes commented Nov 8, 2022

We could add a parameter or flag to the playground ?embed&.... With a flagged playground URL we could embed living examples inside of guides and tutorials (documentation that you can try out immediately). Think of Angular or React embeddings.

This includes:

  • removing header & footer, when embed flag is given
  • add a flag for a read-only mode, otherwise a reset button

Extra:

  • add React client component that gets the plain text grammar and content and passes them to the underlying iframe
    • use the component only in langium-website
@spoenemann spoenemann added the playground Issues related to the playground functionalits label Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
playground Issues related to the playground functionalits
Projects
None yet
Development

No branches or pull requests

2 participants