@@ -20,44 +20,44 @@ new webpack.ProvidePlugin({
20
20
21
21
### Example
22
22
``` 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
27
27
28
28
// 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' ;
33
33
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
+ }
38
38
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
+ }
61
61
}
62
62
63
63
export default RichTextEditor ;
0 commit comments