Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PATCH] Please implement the placeholder attribute #80

Open
jens-josh opened this issue Sep 14, 2017 · 0 comments
Open

[PATCH] Please implement the placeholder attribute #80

jens-josh opened this issue Sep 14, 2017 · 0 comments

Comments

@jens-josh
Copy link

jens-josh commented Sep 14, 2017

Please implement the placeholder attribute of the textarea:

diff --git a/lib/components/TinyMCE.js b/lib/components/TinyMCE.js
index 738b103..fbe49ad 100644
--- a/lib/components/TinyMCE.js
+++ b/lib/components/TinyMCE.js
@@ -37,7 +37,8 @@ const TinyMCE = React.createClass({
     content: React.PropTypes.string,
     id: React.PropTypes.string,
     className: React.PropTypes.string,
-    name: React.PropTypes.string
+    name: React.PropTypes.string,
+    placeholder: React.PropTypes.string,
   },
 
   getDefaultProps() {
@@ -96,6 +97,7 @@ const TinyMCE = React.createClass({
         className={this.props.className}
         name={this.props.name}
         defaultValue={this.props.content}
+        placeholder={this.props.placeholder}
       />
     );
   },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant