jpuri / react-draft-wysiwyg

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

Code should be Code Block #1033

Open darron1217 opened 4 years ago

darron1217 commented 4 years ago

https://draftjs.org/docs/api-reference-content-block According to draftjs official doc, there's no code type on ContentBlock. There's only code-block type on ContentBlock.

So we must change the code below https://github.com/jpuri/react-draft-wysiwyg/blob/9f6f4d2d9e0dec2ce8e154d95052fbd395d690af/src/controls/BlockType/index.js#L63

certong0507 commented 3 years ago

Hello @darron1217 , i'm having the same issue, are you able to resolve the issue?