mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-29 15:51:14 +00:00
parent
24548ccba8
commit
ee0cdde3b8
2 changed files with 5 additions and 1 deletions
|
@ -8,6 +8,7 @@ import { i18n } from "../../i18next";
|
||||||
import { UserService } from "../../services";
|
import { UserService } from "../../services";
|
||||||
import {
|
import {
|
||||||
isBrowser,
|
isBrowser,
|
||||||
|
markdownFieldCharacterLimit,
|
||||||
markdownHelpUrl,
|
markdownHelpUrl,
|
||||||
mdToHtml,
|
mdToHtml,
|
||||||
pictrsDeleteToast,
|
pictrsDeleteToast,
|
||||||
|
@ -143,7 +144,9 @@ export class MarkdownTextArea extends Component<
|
||||||
required
|
required
|
||||||
disabled={this.props.disabled}
|
disabled={this.props.disabled}
|
||||||
rows={2}
|
rows={2}
|
||||||
maxLength={this.props.maxLength.unwrapOr(10000)}
|
maxLength={this.props.maxLength.unwrapOr(
|
||||||
|
markdownFieldCharacterLimit
|
||||||
|
)}
|
||||||
placeholder={toUndefined(this.props.placeholder)}
|
placeholder={toUndefined(this.props.placeholder)}
|
||||||
/>
|
/>
|
||||||
{this.state.previewMode &&
|
{this.state.previewMode &&
|
||||||
|
|
|
@ -74,6 +74,7 @@ export const fetchLimit = 40;
|
||||||
export const trendingFetchLimit = 6;
|
export const trendingFetchLimit = 6;
|
||||||
export const mentionDropdownFetchLimit = 10;
|
export const mentionDropdownFetchLimit = 10;
|
||||||
export const commentTreeMaxDepth = 8;
|
export const commentTreeMaxDepth = 8;
|
||||||
|
export const markdownFieldCharacterLimit = 50000;
|
||||||
|
|
||||||
export const relTags = "noopener nofollow";
|
export const relTags = "noopener nofollow";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue