You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changing const decorator = new PrismDecorator({ defaultSyntax: 'language' }) works for few language definitions included in prismjs, as mentioned in this prism ticket [ 'extend', 'insertBefore', 'DFS', 'markup', 'css', 'clike', 'javascript' ]
and for the other ones from languages-list it gives Error: Cannot read property 'rest' of undefined.
Changing
const decorator = new PrismDecorator({ defaultSyntax: 'language' })
works for fewlanguage
definitions included in prismjs, as mentioned in this prism ticket[ 'extend', 'insertBefore', 'DFS', 'markup', 'css', 'clike', 'javascript' ]
and for the other ones from languages-list it gives
Error: Cannot read property 'rest' of undefined
.Mentioned in the same prism ticket there is a wrapper called prism-languages that provides a full list.
Could it be added to
draft-js-prism
?The text was updated successfully, but these errors were encountered: