Fix Repo Link & Add Comment Length Validation (#453)
This commit is contained in:
parent
0c3164ca42
commit
d5ed370f08
|
@ -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}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue