Pārlūkot izejas kodu

Merge pull request #10 from iyegoroff/editor_css_typo

fixed typo in editor.html + added defaultProps
Yedidya Kennard 7 gadus atpakaļ
vecāks
revīzija
a37de3efbc
2 mainītis faili ar 10 papildinājumiem un 4 dzēšanām
  1. 8
    2
      src/RichTextEditor.js
  2. 2
    2
      src/editor.html

+ 8
- 2
src/RichTextEditor.js Parādīt failu

@@ -22,7 +22,13 @@ export default class RichTextEditor extends Component {
22 22
     customCSS: PropTypes.string,
23 23
     hiddenTitle: PropTypes.bool,
24 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 34
   constructor(props) {
@@ -647,4 +653,4 @@ const styles = StyleSheet.create({
647 653
     marginRight: -20,
648 654
     marginTop: 20
649 655
   }
650
-});
656
+});

+ 2
- 2
src/editor.html Parādīt failu

@@ -1747,7 +1747,7 @@
1747 1747
 		<!-- ZSSRichTextEditor Editable Content -->
1748 1748
 		<div id="zss_editor_title" class="zss_editor_title" contenteditable="true" placeholder="" disableLineBreaks="true"></div>
1749 1749
 		<div id="separatorContainer"><hr></div>
1750
-		<div id="zss_editor_content" class="zs_editor_content" contenteditable="true" placeholder=""></div>
1750
+		<div id="zss_editor_content" class="zss_editor_content" contenteditable="true" placeholder=""></div>
1751 1751
 		<div id="zss_editor_footer"></div>
1752 1752
 	</body>
1753
-</html>
1753
+</html>