@@ -20,44 +20,44 @@ new webpack.ProvidePlugin({
2020
2121### Example
2222``` javascript
23- import React from " react" ;
24- import ReactSummernote from " react-summernote" ;
25- import " react-summernote/dist/react-summernote.css" ; // import styles
26- import " react-summernote/lang/summernote-ru-RU" ; // you can import any other locale
23+ import React , { Component } from ' react' ;
24+ import ReactSummernote from ' react-summernote' ;
25+ import ' react-summernote/dist/react-summernote.css' ; // import styles
26+ import ' react-summernote/lang/summernote-ru-RU' ; // you can import any other locale
2727
2828// Import bootstrap(v3 or v4) dependencies
29- import " bootstrap/js/modal" ;
30- import " bootstrap/js/dropdown" ;
31- import " bootstrap/js/tooltip" ;
32- import " bootstrap/dist/css/bootstrap.css" ;
29+ import ' bootstrap/js/modal' ;
30+ import ' bootstrap/js/dropdown' ;
31+ import ' bootstrap/js/tooltip' ;
32+ import ' bootstrap/dist/css/bootstrap.css' ;
3333
34- class RichTextEditor extends React . Component {
35- onChange (content ) {
36- console .log (" onChange" , content);
37- }
34+ class RichTextEditor extends Component {
35+ onChange (content ) {
36+ console .log (' onChange' , content);
37+ }
3838
39- render () {
40- return (
41- < ReactSummernote
42- value= " Default value"
43- options= {{
44- lang: " ru-RU" ,
45- height: 350 ,
46- dialogsInBody: true ,
47- toolbar: [
48- [ " style" , [" style" ]],
49- [ " font" , [" bold" , " underline" , " clear" ]],
50- [ " fontname" , [" fontname" ]],
51- [ " para" , [" ul " , " ol " , " paragraph" ]],
52- [ " table" , [" table" ]],
53- [ " insert" , [" link" , " picture" , " video" ]],
54- [ " view" , [" fullscreen" , " codeview" ]]
55- ]
56- }}
57- onChange= {this .onChange }
58- / >
59- );
60- }
39+ render () {
40+ return (
41+ < ReactSummernote
42+ value= " Default value"
43+ options= {{
44+ lang: ' ru-RU' ,
45+ height: 350 ,
46+ dialogsInBody: true ,
47+ toolbar: [
48+ [ ' style' , [' style' ]],
49+ [ ' font' , [' bold' , ' underline' , ' clear' ]],
50+ [ ' fontname' , [' fontname' ]],
51+ [ ' para' , [' ul ' , ' ol ' , ' paragraph' ]],
52+ [ ' table' , [' table' ]],
53+ [ ' insert' , [' link' , ' picture' , ' video' ]],
54+ [ ' view' , [' fullscreen' , ' codeview' ]]
55+ ]
56+ }}
57+ onChange= {this .onChange }
58+ / >
59+ );
60+ }
6161}
6262
6363export default RichTextEditor ;
0 commit comments