diff --git a/src/shared/components/post/post-form.tsx b/src/shared/components/post/post-form.tsx index 3e69976d..90bd57ef 100644 --- a/src/shared/components/post/post-form.tsx +++ b/src/shared/components/post/post-form.tsx @@ -23,6 +23,7 @@ import { import { archiveTodayUrl, ghostArchiveUrl, + postMarkdownFieldCharacterLimit, relTags, trendingFetchLimit, webArchiveUrl, @@ -477,6 +478,7 @@ export class PostForm extends Component { allLanguages={this.props.allLanguages} siteLanguages={this.props.siteLanguages} hideNavigationWarnings + maxLength={postMarkdownFieldCharacterLimit} /> diff --git a/src/shared/config.ts b/src/shared/config.ts index 70019742..69039532 100644 --- a/src/shared/config.ts +++ b/src/shared/config.ts @@ -19,7 +19,8 @@ export const postRefetchSeconds: number = 60 * 1000; export const trendingFetchLimit = 6; export const mentionDropdownFetchLimit = 10; export const commentTreeMaxDepth = 8; -export const markdownFieldCharacterLimit = 50000; +export const postMarkdownFieldCharacterLimit = 50000; +export const markdownFieldCharacterLimit = 10000; export const maxUploadImages = 20; export const concurrentImageUpload = 4; export const updateUnreadCountsInterval = 30000;