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

proposal: Edit in Editor example #10

Open
HiDeoo opened this issue Sep 25, 2024 · 1 comment · May be fixed by #11
Open

proposal: Edit in Editor example #10

HiDeoo opened this issue Sep 25, 2024 · 1 comment · May be fixed by #11

Comments

@HiDeoo
Copy link
Contributor

HiDeoo commented Sep 25, 2024

I had to make a Starlight component override for the <EditLink/> component to change its behavior in development mode so that the content file is opened in the user's editor. I don't think it's worth publishing a new package just for this, so I thought it could maybe be a small and interesting example.

Here is a demo in StackBlitz (this works in StackBlitz too): https://stackblitz.com/edit/github-mydczx?file=src%2Fcomponents%2FEditInEditor.astro

Any thoughts on adding a similar example? I don't mind at all if it's rejected, e.g. not useful enough, I just thought I would ask before submitting a PR or forgetting about it.

@delucis
Copy link
Owner

delucis commented Sep 25, 2024

Definitely! The bar for admission into the examples is low, and this example is way over it 🚀

@HiDeoo HiDeoo linked a pull request Sep 25, 2024 that will close this issue
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 a pull request may close this issue.

2 participants