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

Example showing how to retrieve the markdown of an editor component on change #5

Open
j3ffgray opened this issue Jul 13, 2023 · 1 comment

Comments

@j3ffgray
Copy link

Examples show how you can stand up a Milkdown editor component with default values, but I have not been able to find an example where I can register for content changes inside the editor component. I've tried connecting the default value to a reactive variable, but no luck.

This would be a lovely addition to your examples. I'm using Svelte, but I'd imagine any generic example would have transferable concepts to different frameworks.

@JochenLinnemann
Copy link

You find an example in the documentation for the listener plugin: https://milkdown.dev/docs/api/plugin-listener

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