mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-25 15:39:25 +00:00
Make a separate post markdown field character limit. (#2331)
Context: https://github.com/LemmyNet/lemmy/issues/3262
This commit is contained in:
parent
7e0652df45
commit
5ba9da1545
|
@ -23,6 +23,7 @@ import {
|
||||||
import {
|
import {
|
||||||
archiveTodayUrl,
|
archiveTodayUrl,
|
||||||
ghostArchiveUrl,
|
ghostArchiveUrl,
|
||||||
|
postMarkdownFieldCharacterLimit,
|
||||||
relTags,
|
relTags,
|
||||||
trendingFetchLimit,
|
trendingFetchLimit,
|
||||||
webArchiveUrl,
|
webArchiveUrl,
|
||||||
|
@ -477,6 +478,7 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
|
||||||
allLanguages={this.props.allLanguages}
|
allLanguages={this.props.allLanguages}
|
||||||
siteLanguages={this.props.siteLanguages}
|
siteLanguages={this.props.siteLanguages}
|
||||||
hideNavigationWarnings
|
hideNavigationWarnings
|
||||||
|
maxLength={postMarkdownFieldCharacterLimit}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -19,7 +19,8 @@ export const postRefetchSeconds: number = 60 * 1000;
|
||||||
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 postMarkdownFieldCharacterLimit = 50000;
|
||||||
|
export const markdownFieldCharacterLimit = 10000;
|
||||||
export const maxUploadImages = 20;
|
export const maxUploadImages = 20;
|
||||||
export const concurrentImageUpload = 4;
|
export const concurrentImageUpload = 4;
|
||||||
export const updateUnreadCountsInterval = 30000;
|
export const updateUnreadCountsInterval = 30000;
|
||||||
|
|
Loading…
Reference in a new issue