瀏覽代碼

added defaultProps

iyegoroff 8 年之前
父節點
當前提交
07102478e1
共有 1 個檔案被更改,包括 8 行新增2 行删除
  1. 8
    2
      src/RichTextEditor.js

+ 8
- 2
src/RichTextEditor.js 查看文件

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
+});