Skip to content

Confusing feedback when posts are too long #958

@cellio

Description

@cellio

https://meta.codidact.com/posts/287292

Posts are limited to 30,000 characters. It appears that this is a limit on the rendered HTML, not the Markdown source. The post editor can report a "post too long" error while showing a character count that is lower than 30,000 (this is what happened in the linked bug report).

I don't know how expensive it is to check the rendered length during editing. We're showing a preview, so there is HTML; is that in a string or buffer that can be easily checked? If so, we could change the messaging to refer to rendered/output text, including something like "HTML size:" before that character count below the post editor.

I assume we're doing this based on the HTML because the database has to know how large that could be as part of the DDL and HTML is bigger than Markdown, right?

From #909 (duplicate):

Related: if we do the check against the rendered HTML, it would also address https://meta.codidact.com/posts/290859 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: frontendChanges to front-end codecomplexity: unassessedNeeds further developer investigation before complexity/feasibility can be determined.priority: medium

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions