summernote / react-summernote

Summernote (Super simple WYSIWYG editor) adaptation for react
http://summernote.org
MIT License
230 stars 108 forks source link

Codeview highlighted #110

Open CFdong opened 2 years ago

CFdong commented 2 years ago

When I click the codeview, the codes is no highlighted. What should I do to achieve it? Thanks! ![Uploading QQ20211020-163948.png…]()

<ReactSummernote value={descriptionValueLong} className="react-summernote" codemirror={ // codemirror options { theme: 'monokai' } } options={{ toolbar: [ ['style', ['style']], ['font', ['bold', 'underline', 'clear']], ['fontname', ['fontname']], ['color', ['color']], ['para', ['ul', 'ol', 'paragraph']], ['table', ['table']], ['insert', ['link', 'picture', 'video']], ['view', ['fullscreen', 'codeview', 'help']], ] }} onChange={descriptionChangeLong} />

CFdong commented 2 years ago

QQ20211020-163948