codex-team / codex-team/editor.js

How to implement max length limitation💡?

Open
#2,001 3 comments 9 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
31.9k
Forks
2.2k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

We have a requirement to limit the number of text characters to 5000 text words. How to implement this?

Now we implement by counting all the blocks' text length, but the performance is not good, because we want to real-time display the remaining words like "200/5000".

Is there any better way to count the whole text length except the HTML tag in real-time?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.