Closed Radivarig closed 8 years ago
It's because the PrismDecorator isn't finding a syntax. If you set the defaultSyntax option it should work for you
const decorator = new PrismDecorator({ defaultSyntax: 'javascript' })
Yep, that was it. Thanks!
There is no highlighting and when I inspect the text it is a single element while on the demo it is split by parts of different colors.
I also tried to use the code from
draft-js-code
demoand the rest is same as in demo.
Any ideas? Thanks