jpuri / react-draft-wysiwyg

A Wysiwyg editor build on top of ReactJS and DraftJS. https://jpuri.github.io/react-draft-wysiwyg
MIT License
6.38k stars 1.15k forks source link

Is there a callback like onChange for when font changed? #1298

Open jrohlandt opened 1 year ago

jrohlandt commented 1 year ago

I have a use case where I need to know when the fontFamily has changed.

I expected the fontFamily menu item to have a prop for onChange but it doesn't look like it has it?

How can I listen for when the font specifically has changed (and also get the new font family name)?