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 work! #246

Closed noerarief23 closed 4 years ago

noerarief23 commented 4 years ago

iam using yarn add Dante2@next "Dante2": "^0.5.0-rc4", "react": "^16.13.1",

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

any solutions? console not shown

Earvin-Pepito commented 4 years ago

@noerarief23 I'm running React 16.13.0 with rc4 and hit the same roadblock as you. I eventually got it working by updating to rc9. Be sure to install prismsjs with it or it won't work.

noerarief23 commented 4 years ago

@noerarief23 I'm running React 16.13.0 with rc4 and hit the same roadblock as you. I eventually got it working by updating to rc9. Be sure to install prismsjs with it or it won't work.

"Dante2": "0.5.0-rc9" and install prismjs Thank you @Earvin-Pepito , works!