From 5af51ab7e52ea0a7e2b470a772328a1f652dcf3e Mon Sep 17 00:00:00 2001 From: Reginald Johnson Date: Sat, 14 Nov 2020 13:38:53 -0500 Subject: [PATCH] Use the text prop to set text in editor The documentation says that the `text` prop is used to set the contents of the editor, but the current code expects to find that information in a `PlaceHolder` prop. This PR fixes the code to match the documentation. --- src/DragTextEditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DragTextEditor.js b/src/DragTextEditor.js index 5fe253c..3368302 100644 --- a/src/DragTextEditor.js +++ b/src/DragTextEditor.js @@ -51,7 +51,7 @@ export default class DragTextEditor extends Component { h: h < minHeight ? minHeight :h, ended:true, giveInput:false, - text: this.props.PlaceHolder==null?TEXT:this.props.PlaceHolder, + text: this.props.text==null?TEXT:this.props.PlaceHolder, isBorder:false, };