|
@@ -14,6 +14,8 @@ export default class RichTextEditor extends Component {
|
14
|
14
|
static propTypes = {
|
15
|
15
|
initialTitleHTML: PropTypes.string,
|
16
|
16
|
initialContentHTML: PropTypes.string,
|
|
17
|
+ titlePlaceholder: PropTypes.string,
|
|
18
|
+ contentPlaceholder: PropTypes.string,
|
17
|
19
|
editorInitializedCallback: PropTypes.func,
|
18
|
20
|
customCSS: PropTypes.string
|
19
|
21
|
};
|
|
@@ -62,6 +64,8 @@ export default class RichTextEditor extends Component {
|
62
|
64
|
if (this.props.customCSS) {
|
63
|
65
|
this.setCustomCSS(this.props.customCSS);
|
64
|
66
|
}
|
|
67
|
+ this.setTitlePlaceholder(this.props.titlePlaceholder);
|
|
68
|
+ this.setContentPlaceholder(this.props.contentPlaceholder);
|
65
|
69
|
this.setTitleHTML(this.props.initialTitleHTML);
|
66
|
70
|
this.setContentHTML(this.props.initialContentHTML);
|
67
|
71
|
this.props.editorInitializedCallback && this.props.editorInitializedCallback();
|
|
@@ -344,12 +348,12 @@ export default class RichTextEditor extends Component {
|
344
|
348
|
this._sendAction(actions.setTextColor, color);
|
345
|
349
|
}
|
346
|
350
|
|
347
|
|
- setTitlePlaceholder() {
|
348
|
|
- this._sendAction(actions.setTitlePlaceholder);
|
|
351
|
+ setTitlePlaceholder(placeholder) {
|
|
352
|
+ this._sendAction(actions.setTitlePlaceholder, placeholder);
|
349
|
353
|
}
|
350
|
354
|
|
351
|
|
- setContentPlaceholder() {
|
352
|
|
- this._sendAction(actions.setContentPlaceholder);
|
|
355
|
+ setContentPlaceholder(placeholder) {
|
|
356
|
+ this._sendAction(actions.setContentPlaceholder, placeholder);
|
353
|
357
|
}
|
354
|
358
|
|
355
|
359
|
setCustomCSS(css) {
|