Sfoglia il codice sorgente

added defaultProps

iyegoroff 8 anni fa
parent
commit
07102478e1
1 ha cambiato i file con 8 aggiunte e 2 eliminazioni
  1. 8
    2
      src/RichTextEditor.js

+ 8
- 2
src/RichTextEditor.js Vedi File

22
     customCSS: PropTypes.string,
22
     customCSS: PropTypes.string,
23
     hiddenTitle: PropTypes.bool,
23
     hiddenTitle: PropTypes.bool,
24
     enableOnChange: PropTypes.bool,
24
     enableOnChange: PropTypes.bool,
25
-    footerHeight: PropTypes.number
25
+    footerHeight: PropTypes.number,
26
+    contentInset: PropTypes.object
27
+  };
28
+
29
+  static defaultProps = {
30
+    contentInset: {},
31
+    style: {}
26
   };
32
   };
27
 
33
 
28
   constructor(props) {
34
   constructor(props) {
647
     marginRight: -20,
653
     marginRight: -20,
648
     marginTop: 20
654
     marginTop: 20
649
   }
655
   }
650
-});
656
+});