|
@@ -21,7 +21,8 @@ export default class RichTextEditor extends Component {
|
21
|
21
|
editorInitializedCallback: PropTypes.func,
|
22
|
22
|
customCSS: PropTypes.string,
|
23
|
23
|
hiddenTitle: PropTypes.bool,
|
24
|
|
- enableOnChange: PropTypes.bool
|
|
24
|
+ enableOnChange: PropTypes.bool,
|
|
25
|
+ footerHeight: PropTypes.number
|
25
|
26
|
};
|
26
|
27
|
|
27
|
28
|
constructor(props) {
|
|
@@ -504,12 +505,19 @@ export default class RichTextEditor extends Component {
|
504
|
505
|
init() {
|
505
|
506
|
this._sendAction(actions.init);
|
506
|
507
|
this.setPlatform();
|
|
508
|
+ if (this.props.footerHeight) {
|
|
509
|
+ this.setFooterHeight();
|
|
510
|
+ }
|
507
|
511
|
}
|
508
|
512
|
|
509
|
513
|
setEditorHeight(height) {
|
510
|
514
|
this._sendAction(actions.setEditorHeight, height);
|
511
|
515
|
}
|
512
|
516
|
|
|
517
|
+ setFooterHeight() {
|
|
518
|
+ this._sendAction(actions.setFooterHeight, this.props.footerHeight);
|
|
519
|
+ }
|
|
520
|
+
|
513
|
521
|
setPlatform() {
|
514
|
522
|
this._sendAction(actions.setPlatform, Platform.OS);
|
515
|
523
|
}
|