react-markdown-editor-lite icon indicating copy to clipboard operation
react-markdown-editor-lite copied to clipboard

How to pass props for own plugins?

Open a-tonchev opened this issue 4 years ago • 1 comments

I want to use some custom props for my own plugins, is it possible to pass props somehow to my own plugins, e.g.:

<Editor pluginProps={{..hereComeCustomProps}} />

a-tonchev avatar Oct 25 '21 16:10 a-tonchev

I don't think that's a bug, personally i created a context to pass data i wanted to work dynamically with. Of course if it's not dynamic you can use Editor.use(YourPlugin, { size: 4, right: true }) for example

mehdi-dalil avatar Mar 25 '22 10:03 mehdi-dalil