bevacqua / woofmark

:dog2: Barking up the DOM tree. A modular, progressive, and beautiful Markdown and HTML editor
https://bevacqua.github.io/woofmark
MIT License
1.62k stars 74 forks source link

Event fire as user inputs #68

Open Gafilipoie opened 5 years ago

Gafilipoie commented 5 years ago

Hi! Is there a way to fire an event everytime the user changes something in the input and get the input value? (eventListener?)

jywarren commented 5 years ago

Yes, check out how it's done in this code:

https://github.com/publiclab/PublicLab.Editor/blob/cfbd44b2c6ccc8c2b06100da3a421ce9c3515c74/src/modules/PublicLab.RichTextModule.js#L142-L152

On Wed, Aug 1, 2018 at 12:53 PM Gabriel Afilipoie notifications@github.com wrote:

Hi! Is there a way to fire an event everytime the user changes something in the input and get the input value?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bevacqua/woofmark/issues/68, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJz-OAcDpHKvXN7O0Fyb_v4ng67ouks5uMdzcgaJpZM4Vq3Ty .