michelson / dante2

A complete rewrite of dante editor in draft-js
https://michelson.github.io/dante2/
Other
912 stars 121 forks source link

onChange not being triggered #237

Closed philmetzger closed 4 years ago

philmetzger commented 4 years ago

I have Dante2 set up as follows:

<Dante onChange={editor => { console.log('editor content: ', editor.emitSerializedOutput()) }} />

However when I start typing or so, the onChange is never triggered so I never see my console.log. I am basically trying to figure out how to get the content to send it to the database and save it.

I am using: 0.5.0-rc16 but I also tried 0.5.0-rc4 and both dont trigger the onChange

michelson commented 4 years ago

please refer to existing issues like , https://github.com/michelson/dante2/issues/236

and check the examples on the page, if you still have problems, please submit a codesandbox example with your issue

thanks

philmetzger commented 4 years ago

The thing is @michelson when i run npm install Dante2@next (on my next js instance) it installs "Dante2": "^0.5.0-rc4", So not sure how the linked issue will help me. I did a fresh install/update.

noerarief23 commented 4 years ago

The thing is @michelson when i run npm install Dante2@next (on my next js instance) it installs "Dante2": "^0.5.0-rc4", So not sure how the linked issue will help me. I did a fresh install/update.

I have same problem, reinstall Dante2@next not change anything

michelson commented 4 years ago

Hi , sorry guys , the latest version is 0.5.0-rc26 try that and see how it works

Atte. Miguel Michelson Martinez www.vadb.org http://vadb.org

On Sun, Nov 15, 2020 at 6:13 AM Arief Nur Khoerudin < notifications@github.com> wrote:

The thing is @michelson https://github.com/michelson when i run npm install Dante2@next (on my next js instance) it installs "Dante2": "^0.5.0-rc4", So not sure how the linked issue will help me. I did a fresh install/update.

I have same problem, reinstall Dante2@next not change anything

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/michelson/dante2/issues/237#issuecomment-727539046, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAC5SGGGN4XV3NSJ6GLQMTSP6LUVANCNFSM4RR3W5GQ .