Add useful placeholder for the long description textarea

This commit is contained in:
Luke Barnard 2017-11-06 18:03:00 +00:00
parent 36cd22663a
commit 137f1311b3
2 changed files with 11 additions and 0 deletions

View file

@ -867,6 +867,16 @@ export default React.createClass({
<h3> { _t("Long Description (HTML)") } </h3> <h3> { _t("Long Description (HTML)") } </h3>
<textarea <textarea
value={this.state.profileForm.long_description} value={this.state.profileForm.long_description}
placeholder={_t(
'<h1>HTML for your community\'s page</h1>\n' +
'<p>\n' +
' Use the Long Description to introduce ' +
'new members to the community, or distribute ' +
'some important <a href="https://about.riot.im">links</a>.\n' +
'</p> \n' +
'<p> \n' +
' You can even use "img" tags, but only for images reachable from MXC URLs.\n' +
'</p>\n')}
onChange={this._onLongDescChange} onChange={this._onLongDescChange}
tabIndex="4" tabIndex="4"
key="editLongDesc" key="editLongDesc"

View file

@ -703,6 +703,7 @@
"Community Member Settings": "Community Member Settings", "Community Member Settings": "Community Member Settings",
"Publish this community on your profile": "Publish this community on your profile", "Publish this community on your profile": "Publish this community on your profile",
"Long Description (HTML)": "Long Description (HTML)", "Long Description (HTML)": "Long Description (HTML)",
"<h1>HTML for your community's page</h1>\n<p>\n Use the Long Description to introduce new members to the community, or distribute some important <a href=\"https://about.riot.im\">links</a>.\n</p> \n<p> \n You can even use \"img\" tags, but only for images reachable from MXC URLs.\n</p>\n": "<h1>HTML for your community's page</h1>\n<p>\n Use the Long Description to introduce new members to the community, or distribute some important <a href=\"https://about.riot.im\">links</a>.\n</p> \n<p> \n You can even use \"img\" tags, but only for images reachable from MXC URLs.\n</p>\n",
"Description": "Description", "Description": "Description",
"Community %(groupId)s not found": "Community %(groupId)s not found", "Community %(groupId)s not found": "Community %(groupId)s not found",
"This Home server does not support communities": "This Home server does not support communities", "This Home server does not support communities": "This Home server does not support communities",