Closed nikola1970 closed 5 years ago
typescript : import * as BraftEditor from 'braft-editor'
It does not help because:
TS2339: Property 'EditorState' does not exist on type 'typeof BraftEditor'
so because of that, this is not working:
BraftEditor.EditorState.createFrom(htmlContent)
I don't know much about TypeSrcipt, I haven't used it basically, the old version of @types/braft-editor file is done by one of my friends(@petitspois ), the new version of Braft Editor is not compatible with it, so if you use the new version, please do not install @types/braft-editor. I will also get to know TypeScript as soon as possible and provide a usable @types/braft-editor as fast as I can.
Your example says:
but TypeScript is complaining:
And there is no updated types for new version 2.0.5