Milkdown / examples

A list of examples to play with milkdown.
MIT License
32 stars 8 forks source link

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

Open j3ffgray opened 1 year ago

j3ffgray commented 1 year ago

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 commented 1 year ago

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