examples icon indicating copy to clipboard operation
examples copied to clipboard

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

Open j3ffgray opened this issue 2 years ago • 1 comments

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.

j3ffgray avatar Jul 13 '23 19:07 j3ffgray

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

JochenLinnemann avatar Sep 27 '23 17:09 JochenLinnemann