Fix Repo Link & Add Comment Length Validation (#453)

This commit is contained in:
Daniel Ternyak 2019-06-06 12:27:53 -05:00 committed by GitHub
parent 0c3164ca42
commit d5ed370f08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 6 deletions

View File

@ -39,10 +39,7 @@ const commands: { [key in MARKDOWN_TYPE]: ReactMdeProps['commands'] } = {
],
},
{
commands: [
ReactMdeCommands.linkCommand,
ReactMdeCommands.quoteCommand,
],
commands: [ReactMdeCommands.linkCommand, ReactMdeCommands.quoteCommand],
},
{
commands: [
@ -104,7 +101,7 @@ export default class MarkdownEditor extends React.PureComponent<Props, State> {
const { randomKey, value, tab } = this.state;
return (
<div
ref={(el) => this.el = el}
ref={el => (this.el = el)}
className={classnames({
MarkdownEditor: true,
['is-reduced']: type === MARKDOWN_TYPE.REDUCED,
@ -119,6 +116,7 @@ export default class MarkdownEditor extends React.PureComponent<Props, State> {
generateMarkdownPreview={this.generatePreview}
commands={commands[type]}
readOnly={!!readOnly}
textAreaProps={{ maxLength: 1000 }}
minEditorHeight={minHeight}
minPreviewHeight={minHeight - 10}
maxEditorHeight={99999}

View File

@ -2,4 +2,4 @@
* You may reach out to the Zcash Foundation by emailing us at contact@zfnd.org
* You can find us on twitter at https://twitter.com/zcashfoundation
* You can contribute or report issues at https://github.com/zcashfoundation
* You can contribute or report issues at https://github.com/ZcashFoundation/zcash-grant-system/issues